about summary refs log tree commit diff
path: root/pkgs/stdenv/generic
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2024-01-07 17:43:33 -0800
committerRyan Burns <rtburns@protonmail.com>2024-01-07 17:43:33 -0800
commitc324705cc3ac228eeee1d72f4ee4ea46fc5e1283 (patch)
tree4128dbb2429551d5ebcb8c90fc9fd6b31cc055f8 /pkgs/stdenv/generic
parent1bf1c7a244e63f4e550815ea3432fb83c5f69b8a (diff)
downloadnixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar
nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar.gz
nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar.bz2
nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar.lz
nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar.xz
nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar.zst
nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.zip
treewide: simplify exec format conditionals
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r--pkgs/stdenv/generic/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix
index cf194be92bd7..e764571869db 100644
--- a/pkgs/stdenv/generic/default.nix
+++ b/pkgs/stdenv/generic/default.nix
@@ -109,7 +109,7 @@ let
       # there (yet?) so it goes here until then.
       preHook = preHook + lib.optionalString buildPlatform.isDarwin ''
         export NIX_DONT_SET_RPATH_FOR_BUILD=1
-      '' + lib.optionalString (hostPlatform.isDarwin || (hostPlatform.parsed.kernel.execFormat != lib.systems.parse.execFormats.elf && hostPlatform.parsed.kernel.execFormat != lib.systems.parse.execFormats.macho)) ''
+      '' + lib.optionalString (hostPlatform.isDarwin || (!hostPlatform.isElf && !hostPlatform.isMacho)) ''
         export NIX_DONT_SET_RPATH=1
         export NIX_NO_SELF_RPATH=1
       '' + lib.optionalString (hostPlatform.isDarwin && hostPlatform.isMacOS) ''