mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
137eae0b55
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
25 lines
790 B
Nix
25 lines
790 B
Nix
{ cabal, mtl, fetchpatch, alex, happy }:
|
|
|
|
cabal.mkDerivation (self: {
|
|
pname = "BNFC";
|
|
version = "2.6.0.3";
|
|
sha256 = "0i38rwslkvnicnlxbrxybnwkgfin04lnr4q12lcvli4ldp2ylfjq";
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
buildDepends = [ mtl ];
|
|
buildTools = [ alex happy ];
|
|
patches = [ (fetchpatch { url = "https://github.com/BNFC/bnfc/pull/3.patch"; sha256 = "1i87crwva5m3v095lv3zxs38pr6nmly58krlr6sxpwnakpr0pxsp"; }) ];
|
|
patchFlags = "-p2";
|
|
preConfigure = "runhaskell Setup.lhs clean";
|
|
meta = {
|
|
homepage = "http://bnfc.digitalgrammars.com/";
|
|
description = "A compiler front-end generator";
|
|
license = "GPL";
|
|
platforms = self.ghc.meta.platforms;
|
|
maintainers = [
|
|
self.stdenv.lib.maintainers.andres
|
|
self.stdenv.lib.maintainers.simons
|
|
];
|
|
};
|
|
})
|