used stdenv.targetPlatform.isDarwin and not stdenv.isDarwin.
commit63e5b3ce716c9d10f024cc4aafca82146d76258e
authorMoritz Angermann <moritz.angermann@gmail.com>
dateMon 26 Mar 2018, 14:57 (9 years ago)
parent87afa66
pkgs/development/haskell-modules/configuration-nix.nix+1−1
@@ -128,7 +128,7 @@ self: super: builtins.intersectAttrs super {
128128
129129 # Prevents needing to add security_tool as a build tool to all of x509-system's
130130 # dependencies.
131− x509-system = if pkgs.stdenv.isDarwin && !pkgs.stdenv.cc.nativeLibc
131+ x509-system = if pkgs.stdenv.targetPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc
132132 then let inherit (pkgs.darwin) security_tool;
133133 in pkgs.lib.overrideDerivation (addBuildDepend super.x509-system security_tool) (drv: {
134134 postPatch = (drv.postPatch or "") + ''