Merge #2630: add and use fetchpatch
fetchpatch is fetchurl that determinizes the patch. Some parts of generated patches change from time to time, e.g. see #1983 and http://comments.gmane.org/gmane.linux.distributions.nixos/12815 Using fetchpatch should prevent the hash from changing. Conflicts (auto-solved): pkgs/development/libraries/haskell/gitit/default.nix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ cabal, fetchurl, perl, QuickCheck }:
|
||||
{ cabal, fetchpatch, perl, QuickCheck }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "alex";
|
||||
@@ -8,7 +8,7 @@ cabal.mkDerivation (self: {
|
||||
isExecutable = true;
|
||||
buildDepends = [ QuickCheck ];
|
||||
buildTools = [ perl ];
|
||||
patches = [ (fetchurl { url="https://github.com/simonmar/alex/pull/21.patch"; sha256="0apv3rk00gwkf5rqw3467bg6pnamr07zdksbp9khhzzi73k9aq4f"; }) ];
|
||||
patches = [ (fetchpatch { url="http://github.com/simonmar/alex/pull/21.patch"; sha256="050psfwmjlxhyxiy65jsn3v6b9rnfzy8x5q9mmhzwbirqwi0zkfm"; }) ];
|
||||
meta = {
|
||||
homepage = "http://www.haskell.org/alex/";
|
||||
description = "Alex is a tool for generating lexical analysers in Haskell";
|
||||
|
||||
Reference in New Issue
Block a user