diff options
author | Ryan Burns <rtburns@protonmail.com> | 2024-01-07 17:43:33 -0800 |
---|---|---|
committer | Ryan Burns <rtburns@protonmail.com> | 2024-01-07 17:43:33 -0800 |
commit | c324705cc3ac228eeee1d72f4ee4ea46fc5e1283 (patch) | |
tree | 4128dbb2429551d5ebcb8c90fc9fd6b31cc055f8 /pkgs/stdenv/generic | |
parent | 1bf1c7a244e63f4e550815ea3432fb83c5f69b8a (diff) | |
download | nixlib-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.nix | 2 |
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) '' |