Move buildPhase to installPhase
This commit is contained in:
parent
a8cda6e44f
commit
3ec62a28ad
|
@ -32,14 +32,16 @@
|
|||
name = "jupyter-ihaskell";
|
||||
format = "other";
|
||||
|
||||
unpackPhase = ": 3";
|
||||
unpackPhase = ": 3"; # we don't have any sources
|
||||
|
||||
nativeBuildInputs = [ (python.withPackages (ps: with ps; [ jupyter jupyter-core ])) ];
|
||||
|
||||
# for some reason, ihaskell wants to create $HOME/.ihaskell 3:
|
||||
buildPhase = ''
|
||||
# for some reason, ihaskell wants to create $HOME/.ihaskell
|
||||
# we set $HOME to $out, and then remove the .ihaskell file
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
HOME=$out ${pkgs.ihaskell}/bin/ihaskell install --prefix=$out
|
||||
rm -rf $out/.ihaskell
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user