diff options
author | Nikolay Amiantov <ab@fmap.me> | 2015-08-06 15:10:48 +0300 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-08-19 11:01:47 +0200 |
commit | 1a590a618541d0eeff767280ec2c438e25ba820b (patch) | |
tree | 1a5a487bced4fa2810723e4fcb70ea2c07500a4f /pkgs/development | |
parent | d8650d5d6c574c6f911be859b7fb48ccf3af0f09 (diff) | |
download | nixpkgs-1a590a618541d0eeff767280ec2c438e25ba820b.tar nixpkgs-1a590a618541d0eeff767280ec2c438e25ba820b.tar.gz nixpkgs-1a590a618541d0eeff767280ec2c438e25ba820b.tar.bz2 nixpkgs-1a590a618541d0eeff767280ec2c438e25ba820b.tar.lz nixpkgs-1a590a618541d0eeff767280ec2c438e25ba820b.tar.xz nixpkgs-1a590a618541d0eeff767280ec2c438e25ba820b.tar.zst nixpkgs-1a590a618541d0eeff767280ec2c438e25ba820b.zip |
haskell: use postPatch instead of patchPhase where possible
Closes https://github.com/NixOS/nixpkgs/pull/9297.
Diffstat (limited to 'pkgs/development')
7 files changed, 16 insertions, 16 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 6612b5a40cf..2fd397d9797 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -166,7 +166,7 @@ self: super: { # Jailbreak doesn't get the job done because the Cabal file uses conditionals a lot. darcs = (overrideCabal super.darcs (drv: { doCheck = false; # The test suite won't even start. - patchPhase = "sed -i -e 's|attoparsec .*,|attoparsec,|' -e 's|vector .*,|vector,|' darcs.cabal"; + postPatch = "sed -i -e 's|attoparsec .*,|attoparsec,|' -e 's|vector .*,|vector,|' darcs.cabal"; })).overrideScope (self: super: { zlib = self.zlib_0_5_4_2; }); # https://github.com/massysett/rainbox/issues/1 @@ -206,7 +206,7 @@ self: super: { x509-system = if pkgs.stdenv.isDarwin && !pkgs.stdenv.cc.nativeLibc then let inherit (pkgs.darwin) security_tool; in pkgs.lib.overrideDerivation (addBuildDepend super.x509-system security_tool) (drv: { - patchPhase = (drv.patchPhase or "") + '' + postPatch = (drv.postPatch or "") + '' substituteInPlace System/X509/MacOS.hs --replace security ${security_tool}/bin/security ''; }) @@ -216,7 +216,7 @@ self: super: { then super.double-conversion else overrideCabal super.double-conversion (drv: { - patchPhase = '' + postPatch = '' substituteInPlace double-conversion.cabal --replace stdc++ c++ ''; }); @@ -721,7 +721,7 @@ self: super: { # Already fixed in upstream darcs repo. xmonad-contrib = overrideCabal super.xmonad-contrib (drv: { - patchPhase = '' + postPatch = '' sed -i -e '24iimport Control.Applicative' XMonad/Util/Invisible.hs sed -i -e '22iimport Control.Applicative' XMonad/Hooks/DebugEvents.hs ''; @@ -732,7 +732,7 @@ self: super: { # Hardcoded include path poppler = overrideCabal super.poppler (drv: { - patchPhase = '' + postPatch = '' sed -i -e 's,glib/poppler.h,poppler.h,' poppler.cabal sed -i -e 's,glib/poppler.h,poppler.h,' Graphics/UI/Gtk/Poppler/Structs.hsc ''; diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix index cbc9ed32f76..2fd9b9c0fb0 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix @@ -90,10 +90,10 @@ self: super: { # Setup: At least the following dependencies are missing: base <4.8 hspec-expectations = overrideCabal super.hspec-expectations (drv: { - patchPhase = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal"; + postPatch = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal"; }); utf8-string = overrideCabal super.utf8-string (drv: { - patchPhase = "sed -i -e 's|base >= 3 && < 4.8|base|' utf8-string.cabal"; + postPatch = "sed -i -e 's|base >= 3 && < 4.8|base|' utf8-string.cabal"; }); pointfree = doJailbreak super.pointfree; diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix index a7bad53c749..ccc4aa54c28 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix @@ -85,8 +85,8 @@ self: super: { # https://github.com/magthe/sandi/issues/7 sandi = overrideCabal super.sandi (drv: { - patchPhase = "sed -i -e 's|base ==4.8.*,|base,|' sandi.cabal"; } - ); + postPatch = "sed -i -e 's|base ==4.8.*,|base,|' sandi.cabal"; + }); # blaze-builder requires an additional build input on older compilers. blaze-builder = addBuildDepend super.blaze-builder super.bytestring-builder; diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix index 8ec10e22fa4..3579c697ada 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix @@ -127,8 +127,8 @@ self: super: { # https://github.com/magthe/sandi/issues/7 sandi = overrideCabal super.sandi (drv: { - patchPhase = "sed -i -e 's|base ==4.8.*,|base,|' sandi.cabal"; } - ); + postPatch = "sed -i -e 's|base ==4.8.*,|base,|' sandi.cabal"; + }); # Overriding mtl 2.2.x is fine here because ghc-events is an stand-alone executable. ghc-events = super.ghc-events.override { mtl = self.mtl_2_2_1; }; diff --git a/pkgs/development/haskell-modules/configuration-ghc-head.nix b/pkgs/development/haskell-modules/configuration-ghc-head.nix index c8b6f33d847..55fd891ba2a 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-head.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-head.nix @@ -66,10 +66,10 @@ self: super: { # Setup: At least the following dependencies are missing: base <4.8 hspec-expectations = overrideCabal super.hspec-expectations (drv: { - patchPhase = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal"; + postPatch = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal"; }); utf8-string = overrideCabal super.utf8-string (drv: { - patchPhase = "sed -i -e 's|base >= 3 && < 4.8|base|' utf8-string.cabal"; + postPatch = "sed -i -e 's|base >= 3 && < 4.8|base|' utf8-string.cabal"; }); # bos/attoparsec#92 diff --git a/pkgs/development/haskell-modules/configuration-ghc-nokinds.nix b/pkgs/development/haskell-modules/configuration-ghc-nokinds.nix index be78321b38a..e62f21f135e 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-nokinds.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-nokinds.nix @@ -65,10 +65,10 @@ self: super: { # Setup: At least the following dependencies are missing: base <4.8 hspec-expectations = overrideCabal super.hspec-expectations (drv: { - patchPhase = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal"; + postPatch = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal"; }); utf8-string = overrideCabal super.utf8-string (drv: { - patchPhase = "sed -i -e 's|base >= 3 && < 4.8|base|' utf8-string.cabal"; + postPatch = "sed -i -e 's|base >= 3 && < 4.8|base|' utf8-string.cabal"; }); # bos/attoparsec#92 diff --git a/pkgs/development/haskell-modules/configuration-ghcjs.nix b/pkgs/development/haskell-modules/configuration-ghcjs.nix index 48e7c14f317..bec8fabae20 100644 --- a/pkgs/development/haskell-modules/configuration-ghcjs.nix +++ b/pkgs/development/haskell-modules/configuration-ghcjs.nix @@ -56,7 +56,7 @@ self: super: { vector = null; pqueue = overrideCabal super.pqueue (drv: { - patchPhase = '' + postPatch = '' sed -i -e '12s|null|Data.PQueue.Internals.null|' Data/PQueue/Internals.hs sed -i -e '64s|null|Data.PQueue.Internals.null|' Data/PQueue/Internals.hs sed -i -e '32s|null|Data.PQueue.Internals.null|' Data/PQueue/Min.hs |