haskell-ghc-parser: re-generate with cabal2nix

This commit is contained in:
Peter Simons
2014-10-03 20:02:00 +02:00
parent f0e9b680e8
commit 68894fb707
@@ -1,24 +1,20 @@
# This file was auto-generated by cabal2nix. Please do NOT edit manually! # This file was auto-generated by cabal2nix. Please do NOT edit manually!
# This file was later edited manually in order to add happy and cpphs
# build tools, configurePhase and meta.
{ cabal, bash, happy, cpphs }: { cabal, cpphs, happy }:
cabal.mkDerivation (self: { cabal.mkDerivation (self: {
pname = "ghc-parser"; pname = "ghc-parser";
version = "0.1.3.0"; version = "0.1.3.0";
sha256 = "13p09mj92jh4y0v2r672d49fmlz3l5r2r1lqg0jjy6kj045wcfdn"; sha256 = "13p09mj92jh4y0v2r672d49fmlz3l5r2r1lqg0jjy6kj045wcfdn";
buildTools = [ happy cpphs ]; buildTools = [ cpphs happy ];
configurePhase = '' patchPhase = ''
ghc --make Setup.hs substituteInPlace build-parser.sh --replace "/bin/bash" "$SHELL"
substituteInPlace build-parser.sh --replace "/bin/bash" "${bash}/bin/bash"
./Setup configure --verbose --prefix="$out"
''; '';
meta = with self.stdenv.lib; { meta = {
homepage = "https://github.com/gibiansky/IHaskell"; homepage = "https://github.com/gibiansky/IHaskell";
description = "Haskell source parser from GHC"; description = "Haskell source parser from GHC";
license = licenses.mit; license = self.stdenv.lib.licenses.mit;
platforms = self.ghc.meta.platforms; platforms = self.ghc.meta.platforms;
maintainers = with maintainers; [ edwtjo ]; maintainers = with self.stdenv.lib.maintainers; [ edwtjo ];
}; };
}) })