From 94276da9e98691be7d083b06301c3e434ba2cfa4 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Mon, 15 Jan 2018 12:47:08 -0500 Subject: [PATCH] perf: inherit makeFlags from kernel --- pkgs/os-specific/linux/kernel/perf.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/perf.nix b/pkgs/os-specific/linux/kernel/perf.nix index c61727942560..96927bf4be92 100644 --- a/pkgs/os-specific/linux/kernel/perf.nix +++ b/pkgs/os-specific/linux/kernel/perf.nix @@ -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 = ''