From c0e7951de9ff9ef00d1bbc3de1b830172baed5ce Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 14 Feb 2015 10:25:17 +0100 Subject: haskell-x509-system: don't add Darwin-related patch unconditionally --- pkgs/development/haskell-modules/configuration-common.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkgs/development/haskell-modules/configuration-common.nix') 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 ''; }); -- cgit 1.4.1