New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mlc: init at 3.9 #102670
mlc: init at 3.9 #102670
Conversation
pkgs/tools/system/mlc/default.nix
Outdated
|
||
nativeBuildInputs = [ patchelf ]; | ||
|
||
phases = [ "unpackPhase" "installPhase" "patchPhase" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally you shouldn't overwrite phases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done.
pkgs/tools/system/mlc/default.nix
Outdated
cp mlc $out/bin/mlc | ||
chmod +x $out/bin/mlc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cp mlc $out/bin/mlc | |
chmod +x $out/bin/mlc | |
install -Dm755 mlc $out/bin/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I also removed the mkdir $out/bin
since that's handled by install
as well.
pkgs/tools/system/mlc/default.nix
Outdated
@@ -0,0 +1,34 @@ | |||
{ stdenv, fetchurl, patchelf, lib }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ stdenv, fetchurl, patchelf, lib }: | |
{ stdenv, fetchurl, patchelf }: |
You can use with stdenv;
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
pkgs/tools/system/mlc/default.nix
Outdated
meta = { | ||
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; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meta = { | |
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; | |
}; | |
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 = licenses.unfree; | |
maintainers = maintainers; [ basvandijk ]; | |
platforms = with platforms; linux; | |
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks.
@GrahamcOfBorg build mlc |
Motivation for this change
https://software.intel.com/content/www/us/en/develop/articles/intelr-memory-latency-checker.html
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)