about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVanilla <osu_Vanilla@126.com>2023-12-12 17:58:03 +0800
committerVanilla <osu_Vanilla@126.com>2023-12-12 17:59:44 +0800
commit11a5040a483ef9e5db62ba5b13985aa79d2ad48e (patch)
tree83c2a12c7a66c317fba5f0e3cd9cea63e277d31b
parentd92daec27ee4662c8a4a10206d9bfc3d7e557f90 (diff)
lshw: fix static build
-rw-r--r--pkgs/tools/system/lshw/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/tools/system/lshw/default.nix b/pkgs/tools/system/lshw/default.nix
index 9878f82b9d092..5a6318ea4c21a 100644
--- a/pkgs/tools/system/lshw/default.nix
+++ b/pkgs/tools/system/lshw/default.nix
@@ -37,6 +37,8 @@ stdenv.mkDerivation rec {
 
   buildFlags = [ "all" ] ++ lib.optional withGUI "gui";
 
+  hardeningDisable = lib.optionals stdenv.hostPlatform.isStatic [ "fortify" ];
+
   installTargets = [ "install" ] ++ lib.optional withGUI "install-gui";
 
   enableParallelBuilding = true;