summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2014-10-03 20:01:19 +0200
committerPeter Simons <simons@cryp.to>2014-10-03 20:02:00 +0200
commit68894fb707c4d95a66869d0fdf4b4870550f2427 (patch)
tree7a956df173ea1d61115255474d1213c501279bc4 /pkgs/development
parentf0e9b680e8e9dadf6a56061e5eb8524a0590c8f7 (diff)
downloadnixpkgs-68894fb707c4d95a66869d0fdf4b4870550f2427.tar
nixpkgs-68894fb707c4d95a66869d0fdf4b4870550f2427.tar.gz
nixpkgs-68894fb707c4d95a66869d0fdf4b4870550f2427.tar.bz2
nixpkgs-68894fb707c4d95a66869d0fdf4b4870550f2427.tar.lz
nixpkgs-68894fb707c4d95a66869d0fdf4b4870550f2427.tar.xz
nixpkgs-68894fb707c4d95a66869d0fdf4b4870550f2427.tar.zst
nixpkgs-68894fb707c4d95a66869d0fdf4b4870550f2427.zip
haskell-ghc-parser: re-generate with cabal2nix
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/haskell/ghc-parser/default.nix18
1 files 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 ];
   };
 })