mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
* added a preliminary nix expression for EHC, *DOESN'T WORK YET*
svn path=/nixpkgs/trunk/; revision=11104
This commit is contained in:
parent
03a9016049
commit
d1ea08359e
1 changed files with 39 additions and 0 deletions
39
pkgs/development/compilers/ehc/default.nix
Normal file
39
pkgs/development/compilers/ehc/default.nix
Normal file
|
@ -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;
|
||||
})
|
Loading…
Reference in a new issue