redprl: remove explicit builder

patchPhase wasn't being called for me so I've switched out the explicit
builder for the generic form. I can now build RedPRL on locally on
NixOS.
This commit is contained in:
Brian McKenna 2016-09-29 10:52:29 +10:00
parent 4c493a32f9
commit 57e1250d89
1 changed files with 4 additions and 5 deletions

View File

@ -11,12 +11,11 @@ stdenv.mkDerivation {
patchPhase = '' patchPhase = ''
patchShebangs ./script/ patchShebangs ./script/
''; '';
builder = builtins.toFile "builder.sh" '' buildPhase = ''
source $stdenv/setup
mkdir -p $out/bin
cp -r $src/* .
chmod -R +w src
./script/mlton.sh ./script/mlton.sh
'';
installPhase = ''
mkdir -p $out/bin
mv ./bin/redprl $out/bin mv ./bin/redprl $out/bin
''; '';
meta = { meta = {