Merge pull request #4272 from edwtjo/ihaskell

ihaskell: added package
This commit is contained in:
Peter Simons
2014-10-03 19:12:08 +02:00
8 changed files with 182 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# 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.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"
'';
meta = with self.stdenv.lib; {
homepage = "https://github.com/gibiansky/IHaskell";
description = "Haskell source parser from GHC";
license = licenses.mit;
platforms = self.ghc.meta.platforms;
maintainers = with maintainers; [ edwtjo ];
};
})

View File

@@ -0,0 +1,20 @@
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
# The file was later edited to add the state patch.
# https://github.com/np/here/commit/3c16a4e4ce16c08904454972c0d9b43007d1c0cc
{ cabal, haskellSrcMeta, mtl, parsec, fetchpatch }:
cabal.mkDerivation (self: {
pname = "here";
version = "1.2.5";
sha256 = "0r7hjsvbx7vshbdhi60955mdfnq6arg5ihfz9f2zyilh4l5cyzwb";
buildDepends = [ haskellSrcMeta mtl parsec ];
patches = [ (fetchpatch { url = "https://github.com/np/here/commit/3c16a4e4ce16c08904454972c0d9b43007d1c0cc.patch"; sha256 = "1qibwbcpnl1cg35zvvdd2k8nr6bgd36qbla3naim3g08qaapm82h"; }) ];
meta = with self.stdenv.lib; {
homepage = "https://github.com/tmhedberg/here";
description = "Here docs & interpolated strings via quasiquotation";
license = licenses.bsd3;
platforms = self.ghc.meta.platforms;
maintainers = with maintainers; [ edwtjo ];
};
})

View File

@@ -0,0 +1,16 @@
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, systemFilepath, text }:
cabal.mkDerivation (self: {
pname = "system-argv0";
version = "0.1.1";
sha256 = "1ijfry2r3cypp3zmws6dczk21m4n86fkxjld7yl19gjp46fxllbd";
buildDepends = [ systemFilepath text ];
meta = {
homepage = "https://john-millikin.com/software/haskell-filesystem/";
description = "Get argv[0] as a FilePath";
license = self.stdenv.lib.licenses.mit;
platforms = self.ghc.meta.platforms;
};
})