diff options
author | Andres Löh <mail@andres-loeh.de> | 2008-03-13 18:02:48 +0000 |
---|---|---|
committer | Andres Löh <mail@andres-loeh.de> | 2008-03-13 18:02:48 +0000 |
commit | d1ea08359ebfac3a5531d0cb8ad11a4a76efb16a (patch) | |
tree | 0e2d84ace276a92f62680f5ad7f9a191c81bebde | |
parent | 03a90160499063a8666c8bd30da22d92c17307db (diff) | |
download | nixpkgs-d1ea08359ebfac3a5531d0cb8ad11a4a76efb16a.tar nixpkgs-d1ea08359ebfac3a5531d0cb8ad11a4a76efb16a.tar.gz nixpkgs-d1ea08359ebfac3a5531d0cb8ad11a4a76efb16a.tar.bz2 nixpkgs-d1ea08359ebfac3a5531d0cb8ad11a4a76efb16a.tar.lz nixpkgs-d1ea08359ebfac3a5531d0cb8ad11a4a76efb16a.tar.xz nixpkgs-d1ea08359ebfac3a5531d0cb8ad11a4a76efb16a.tar.zst nixpkgs-d1ea08359ebfac3a5531d0cb8ad11a4a76efb16a.zip |
* added a preliminary nix expression for EHC, *DOESN'T WORK YET*
svn path=/nixpkgs/trunk/; revision=11104
-rw-r--r-- | pkgs/development/compilers/ehc/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ehc/default.nix b/pkgs/development/compilers/ehc/default.nix new file mode 100644 index 00000000000..4abfd199329 --- /dev/null +++ b/pkgs/development/compilers/ehc/default.nix @@ -0,0 +1,39 @@ +{stdenv, coreutils, fetchsvn, m4, ghc, uulib, uuagc}: + +stdenv.mkDerivation (rec { + name = "ehc-svn-1033"; + homepage = "http://www.cs.uu.nl/wiki/Ehc/WebHome/"; + + src = fetchsvn { + url = https://svn.cs.uu.nl:12443/repos/EHC/trunk/EHC; + rev = "1033"; + sha256 = "bee6271b81bb1781b086b3c102c6a8205df6d7fca073f2492817717a2553e7af"; + }; + + buildInputs = [coreutils m4 ghc uulib uuagc]; + + preConfigure = '' + find src -name files\*.mk -exec sed -i -- "s/--user//g" '{}' \; + sed -i "s|/bin/date|${coreutils}/bin/date|g" mk/dist.mk + ''; + + buildFlags = "100/ehc"; + + installPhase = '' + mkdir -p $out/bin + cd bin + for i in *; do + if [[ -d $i ]]; then + cp $i/ehc $out/bin/ehc-$i + fi; + done + mkdir -p $out/lib/ehc + exit 1 + ''; + + meta = { + description = "Essential Haskell Compiler"; + }; + + inherit coreutils; +}) |