nixpkgs-suyu/pkgs/development/compilers/harp/builder.sh
Eelco Dolstra 82e678362f * "." -> "source".
svn path=/nixpkgs/trunk/; revision=4335
2005-12-05 14:11:09 +00:00

18 lines
442 B
Bash

source $stdenv/setup
unzip $src
happy Language/Haskell/Harp/Parser.ly
ghc --make TrHarp.hs -o trharp
mkdir $out
mkdir $out/bin
cp trharp $out/bin/
ghc -c Language/Haskell/Harp/Match.hs
mkdir -p $out/hslibs/Language/Haskell/Harp/
cp Language/Haskell/Harp/Match.hs $out/hslibs/Language/Haskell/Harp/
cp Language/Haskell/Harp/Match.hi $out/hslibs/Language/Haskell/Harp/
cp Language/Haskell/Harp/Match.o $out/hslibs/Language/Haskell/Harp/