mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
mlc: refactoring
This commit is contained in:
parent
64cbf9f0de
commit
f8e066b5ed
1 changed files with 9 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, patchelf, lib }:
|
||||
{ stdenv, fetchurl, patchelf }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mlc";
|
||||
version = "3.9";
|
||||
|
@ -10,25 +10,21 @@ stdenv.mkDerivation rec {
|
|||
|
||||
sourceRoot = "Linux";
|
||||
|
||||
nativeBuildInputs = [ patchelf ];
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" "patchPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp mlc $out/bin/mlc
|
||||
chmod +x $out/bin/mlc
|
||||
install -Dm755 mlc $out/bin/mlc
|
||||
'';
|
||||
|
||||
patchPhase = ''
|
||||
nativeBuildInputs = [ patchelf ];
|
||||
|
||||
fixupPhase = ''
|
||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/bin/mlc
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://software.intel.com/content/www/us/en/develop/articles/intelr-memory-latency-checker.html";
|
||||
description = "Intel Memory Latency Checker";
|
||||
license = lib.licenses.unfree;
|
||||
maintainers = with lib.maintainers; [ basvandijk ];
|
||||
platforms = with lib.platforms; linux;
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ basvandijk ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue