From 3ec62a28ad3beb5b6dbee744a4b8fc795d060dd3 Mon Sep 17 00:00:00 2001 From: xenia Date: Fri, 13 Oct 2023 17:09:55 +0200 Subject: [PATCH] Move buildPhase to installPhase --- jupyter/flake.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 ''; };