summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-common.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-02-14 10:25:17 +0100
committerPeter Simons <simons@cryp.to>2015-02-14 19:41:49 +0100
commitc0e7951de9ff9ef00d1bbc3de1b830172baed5ce (patch)
tree184abeff333fca4bfe70d67ef899c7ff445e2030 /pkgs/development/haskell-modules/configuration-common.nix
parent155e92627441d1a98f85e57c9184b1175c30730f (diff)
downloadnixpkgs-c0e7951de9ff9ef00d1bbc3de1b830172baed5ce.tar
nixpkgs-c0e7951de9ff9ef00d1bbc3de1b830172baed5ce.tar.gz
nixpkgs-c0e7951de9ff9ef00d1bbc3de1b830172baed5ce.tar.bz2
nixpkgs-c0e7951de9ff9ef00d1bbc3de1b830172baed5ce.tar.lz
nixpkgs-c0e7951de9ff9ef00d1bbc3de1b830172baed5ce.tar.xz
nixpkgs-c0e7951de9ff9ef00d1bbc3de1b830172baed5ce.tar.zst
nixpkgs-c0e7951de9ff9ef00d1bbc3de1b830172baed5ce.zip
haskell-x509-system: don't add Darwin-related patch unconditionally
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index f45371d8c1b..8bb9917442b 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -145,8 +145,7 @@ self: super: {
   # Prevents needing to add security_tool as a build tool to all of x509-system's
   # dependencies.
   x509-system = overrideCabal super.x509-system (drv: {
-    patchPhase = ''
-      ${drv.patchPhase or ""}
+    patchPhase = (drv.patchPhase or "") + pkgs.stdenv.lib.optionalString pkgs.stdenv.isDarwin ''
       substituteInPlace System/X509/MacOS.hs --replace security ${pkgs.darwin.security_tool}/bin/security
     '';
   });