1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

perf: inherit makeFlags from kernel

This commit is contained in:
Ben Wolsieffer 2018-01-15 12:47:08 -05:00 committed by Tuomas Tynkkynen
parent 44dc31bad1
commit 94276da9e9

View file

@ -11,7 +11,7 @@ assert versionAtLeast kernel.version "3.12";
stdenv.mkDerivation {
name = "perf-linux-${kernel.version}";
inherit (kernel) src;
inherit (kernel) src makeFlags;
preConfigure = ''
cd tools/perf
@ -39,10 +39,6 @@ stdenv.mkDerivation {
"-Wno-error=unused-const-variable" "-Wno-error=misleading-indentation"
];
makeFlags = if stdenv.hostPlatform == stdenv.buildPlatform
then null
else "CROSS_COMPILE=${stdenv.cc.targetPrefix}";
installFlags = "install install-man ASCIIDOC8=1";
preFixup = ''