summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-11-16 12:57:06 +0000
committerAaron Jheng <wentworth@outlook.com>2022-11-27 03:50:09 +0000
commit039d874f0b93ad10e77995a340b2d3ee55497562 (patch)
tree6c106f99021f2aca8c9b9ce9712cd16b3cee2b0b /pkgs/os-specific/linux/kernel
parent8b5dd47fe0db0834cebda33ad4b2d8f5ba4e9aa5 (diff)
downloadnixpkgs-039d874f0b93ad10e77995a340b2d3ee55497562.tar
nixpkgs-039d874f0b93ad10e77995a340b2d3ee55497562.tar.gz
nixpkgs-039d874f0b93ad10e77995a340b2d3ee55497562.tar.bz2
nixpkgs-039d874f0b93ad10e77995a340b2d3ee55497562.tar.lz
nixpkgs-039d874f0b93ad10e77995a340b2d3ee55497562.tar.xz
nixpkgs-039d874f0b93ad10e77995a340b2d3ee55497562.tar.zst
nixpkgs-039d874f0b93ad10e77995a340b2d3ee55497562.zip
perf-linux: tweak make flags to supress build warnings
Diffstat (limited to 'pkgs/os-specific/linux/kernel')
-rw-r--r--pkgs/os-specific/linux/kernel/perf/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/kernel/perf/default.nix b/pkgs/os-specific/linux/kernel/perf/default.nix
index e4c8be02cbb..ae028b980ce 100644
--- a/pkgs/os-specific/linux/kernel/perf/default.nix
+++ b/pkgs/os-specific/linux/kernel/perf/default.nix
@@ -78,7 +78,10 @@ stdenv.mkDerivation {
     patchShebangs pmu-events/jevents.py
   '';
 
-  makeFlags = [ "prefix=$(out)" "WERROR=0" ] ++ kernel.makeFlags;
+  makeFlags = [ "prefix=$(out)" "WERROR=0" "ASCIIDOC8=1" ] ++ kernel.makeFlags
+    ++ lib.optional (!withGtk) "NO_GTK2=1"
+    ++ lib.optional (!withZstd) "NO_LIBZSTD=1"
+    ++ lib.optional (!withLibcap) "NO_LIBCAP=1";
 
   hardeningDisable = [ "format" ];
 
@@ -127,7 +130,7 @@ stdenv.mkDerivation {
 
   doCheck = false; # requires "sparse"
 
-  installFlags = [ "install" "install-man" "ASCIIDOC8=1" "prefix=$(out)" ];
+  installTargets = [ "install" "install-man" ];
 
   # TODO: Add completions based on perf-completion.sh
   postInstall = ''