nixpkgs/pkgs/development/compilers/harp/builder.sh
Martin Bravenboer 3d90f961b4 Added Happy parser generator and HaRP: Haskell Regular Patterns
svn path=/nixpkgs/trunk/; revision=1043
2004-06-09 14:23:05 +00:00

19 lines
437 B
Bash

. $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/