diff options
author | Peter Simons <simons@cryp.to> | 2015-06-04 13:33:57 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-06-04 13:33:57 +0200 |
commit | c659105ef8b2fe87822acf52f191a189f62e4d8a (patch) | |
tree | 1fbdf90c9b7916caa1a39b37ce422dea26642719 /pkgs | |
parent | ac5d849ff66328607fc28d643ac6f513e09a3df4 (diff) | |
download | nixlib-c659105ef8b2fe87822acf52f191a189f62e4d8a.tar nixlib-c659105ef8b2fe87822acf52f191a189f62e4d8a.tar.gz nixlib-c659105ef8b2fe87822acf52f191a189f62e4d8a.tar.bz2 nixlib-c659105ef8b2fe87822acf52f191a189f62e4d8a.tar.lz nixlib-c659105ef8b2fe87822acf52f191a189f62e4d8a.tar.xz nixlib-c659105ef8b2fe87822acf52f191a189f62e4d8a.tar.zst nixlib-c659105ef8b2fe87822acf52f191a189f62e4d8a.zip |
cabal2nix: get rid of the '-dirty' version suffix
The fetchgit builder performs some freak magic in the name of deterministic hashes that screws up git's idea of a clean directory tree.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/haskell/cabal2nix/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/tools/haskell/cabal2nix/default.nix b/pkgs/development/tools/haskell/cabal2nix/default.nix index 7c36390b91eb..240353b6e755 100644 --- a/pkgs/development/tools/haskell/cabal2nix/default.nix +++ b/pkgs/development/tools/haskell/cabal2nix/default.nix @@ -31,7 +31,10 @@ mkDerivation rec { split transformers utf8-string ]; buildTools = [ gitMinimal makeWrapper ]; - preConfigure = "runhaskell $setupCompileFlags generate-cabal-file --release >cabal2nix.cabal"; + preConfigure = '' + sed -i -e 's|, "--dirty"||' generate-cabal-file.hs + runhaskell $setupCompileFlags generate-cabal-file --release >cabal2nix.cabal + ''; postInstall = '' exe=$out/libexec/${pname}-${version}/cabal2nix install -D $out/bin/cabal2nix $exe |