diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-05-21 13:39:23 -0400 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2017-05-22 00:25:02 -0400 |
commit | 2e7ec6fb702be66389405d48693b322565b27c69 (patch) | |
tree | 8fe252b2e58b2c7640f6c76d67707e5dc0bd9926 /pkgs/os-specific | |
parent | da8b2f1412c77ef50c90587d4b0f3a66e11892d6 (diff) | |
download | nixlib-2e7ec6fb702be66389405d48693b322565b27c69.tar nixlib-2e7ec6fb702be66389405d48693b322565b27c69.tar.gz nixlib-2e7ec6fb702be66389405d48693b322565b27c69.tar.bz2 nixlib-2e7ec6fb702be66389405d48693b322565b27c69.tar.lz nixlib-2e7ec6fb702be66389405d48693b322565b27c69.tar.xz nixlib-2e7ec6fb702be66389405d48693b322565b27c69.tar.zst nixlib-2e7ec6fb702be66389405d48693b322565b27c69.zip |
lib: Make platform predicates more ergonomic to use
`hostPlatform.isDarwin` instead of `lib.system.parse.isDarwin hostPlatform.parsed`
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/darwin/cctools/port.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/os-specific/darwin/cctools/port.nix b/pkgs/os-specific/darwin/cctools/port.nix index 14c4c6e99739..222c51603fdd 100644 --- a/pkgs/os-specific/darwin/cctools/port.nix +++ b/pkgs/os-specific/darwin/cctools/port.nix @@ -5,17 +5,15 @@ }: let - inherit (stdenv.lib.systems.parse) isDarwin; - prefix = stdenv.lib.optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-"; in -assert isDarwin targetPlatform.parsed; +assert targetPlatform.isDarwin; # Non-Darwin alternatives -assert (!isDarwin hostPlatform.parsed) -> (maloader != null && xctoolchain != null); +assert (!hostPlatform.isDarwin) -> (maloader != null && xctoolchain != null); let baseParams = rec { @@ -91,7 +89,7 @@ let ''; postInstall = - if isDarwin hostPlatform.parsed + if hostPlatform.isDarwin then '' cat >$out/bin/dsymutil << EOF #!${stdenv.shell} |