From 4fd985b9ae242c639fb2cfa4eafb20a8f79c7cea Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Sun, 24 Jan 2016 13:32:56 -0500 Subject: haskell-packages: properly set postPatch The existing code overrode the postPatch, instead of combining the jailbreak commands with the user supplied postPatch. --- pkgs/development/compilers/ghcjs/default.nix | 5 +---- pkgs/development/haskell-modules/generic-builder.nix | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/compilers/ghcjs/default.nix b/pkgs/development/compilers/ghcjs/default.nix index 5d7b8d65b6a..5ddfdc41917 100644 --- a/pkgs/development/compilers/ghcjs/default.nix +++ b/pkgs/development/compilers/ghcjs/default.nix @@ -52,7 +52,7 @@ mkDerivation (rec { }; isLibrary = true; isExecutable = true; - jailbreak = false; # manually jailbreak, until postPatch in mkDerivation is fixed + jailbreak = true; doHaddock = false; doCheck = false; buildDepends = [ @@ -72,9 +72,6 @@ mkDerivation (rec { ]; patches = [ ./ghcjs.patch ]; postPatch = '' - echo "Run jailbreak-cabal to lift version restrictions on build inputs." - ${jailbreak-cabal}/bin/jailbreak-cabal ${pname}.cabal - substituteInPlace Setup.hs \ --replace "/usr/bin/env" "${coreutils}/bin/env" diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index ad820012bd1..afd30c8283b 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -299,7 +299,6 @@ stdenv.mkDerivation ({ // optionalAttrs (configureFlags != []) { inherit configureFlags; } // optionalAttrs (patches != []) { inherit patches; } // optionalAttrs (patchPhase != "") { inherit patchPhase; } -// optionalAttrs (postPatch != "") { inherit postPatch; } // optionalAttrs (preConfigure != "") { inherit preConfigure; } // optionalAttrs (postConfigure != "") { inherit postConfigure; } // optionalAttrs (preBuild != "") { inherit preBuild; } -- cgit 1.4.1