Move buildPhase to installPhase

This commit is contained in:
xenia 2023-10-13 17:09:55 +02:00
parent a8cda6e44f
commit 3ec62a28ad

View File

@ -32,14 +32,16 @@
name = "jupyter-ihaskell"; name = "jupyter-ihaskell";
format = "other"; format = "other";
unpackPhase = ": 3"; unpackPhase = ": 3"; # we don't have any sources
nativeBuildInputs = [ (python.withPackages (ps: with ps; [ jupyter jupyter-core ])) ]; nativeBuildInputs = [ (python.withPackages (ps: with ps; [ jupyter jupyter-core ])) ];
# for some reason, ihaskell wants to create $HOME/.ihaskell 3: # for some reason, ihaskell wants to create $HOME/.ihaskell
buildPhase = '' # we set $HOME to $out, and then remove the .ihaskell file
installPhase = ''
mkdir -p $out mkdir -p $out
HOME=$out ${pkgs.ihaskell}/bin/ihaskell install --prefix=$out HOME=$out ${pkgs.ihaskell}/bin/ihaskell install --prefix=$out
rm -rf $out/.ihaskell
''; '';
}; };