mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
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.
This commit is contained in:
parent
ac5d849ff6
commit
c659105ef8
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue