diff --git a/jupyter/flake.nix b/jupyter/flake.nix index 915ce23..f22b198 100644 --- a/jupyter/flake.nix +++ b/jupyter/flake.nix @@ -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 ''; };