3
0
Fork 0
forked from mirrors/nixpkgs

Revert "perf: inherit makeFlags from kernel"

https://github.com/NixOS/nixpkgs/issues/34013

This reverts commit 92083c3f40.
This commit is contained in:
Will Dietz 2018-01-18 10:40:18 -06:00
parent e1db0afd61
commit fc4535b6e8

View file

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