From 68894fb707c4d95a66869d0fdf4b4870550f2427 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 3 Oct 2014 20:01:19 +0200 Subject: [PATCH] haskell-ghc-parser: re-generate with cabal2nix --- .../libraries/haskell/ghc-parser/default.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/pkgs/development/libraries/haskell/ghc-parser/default.nix b/pkgs/development/libraries/haskell/ghc-parser/default.nix index 74609e4e1ad..1cbfe4a19f3 100644 --- a/pkgs/development/libraries/haskell/ghc-parser/default.nix +++ b/pkgs/development/libraries/haskell/ghc-parser/default.nix @@ -1,24 +1,20 @@ # 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: { pname = "ghc-parser"; version = "0.1.3.0"; sha256 = "13p09mj92jh4y0v2r672d49fmlz3l5r2r1lqg0jjy6kj045wcfdn"; - buildTools = [ happy cpphs ]; - configurePhase = '' - ghc --make Setup.hs - substituteInPlace build-parser.sh --replace "/bin/bash" "${bash}/bin/bash" - ./Setup configure --verbose --prefix="$out" + buildTools = [ cpphs happy ]; + patchPhase = '' + substituteInPlace build-parser.sh --replace "/bin/bash" "$SHELL" ''; - meta = with self.stdenv.lib; { + meta = { homepage = "https://github.com/gibiansky/IHaskell"; description = "Haskell source parser from GHC"; - license = licenses.mit; + license = self.stdenv.lib.licenses.mit; platforms = self.ghc.meta.platforms; - maintainers = with maintainers; [ edwtjo ]; + maintainers = with self.stdenv.lib.maintainers; [ edwtjo ]; }; })