From dcd57debdd1d9b9c09919e9cd8bcc0a4204f14df Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Mon, 20 May 2024 10:31:12 +0200 Subject: [PATCH] Added nix build hooks --- NixSupport/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/NixSupport/default.nix b/NixSupport/default.nix index 7f3733aaa..f0884ced6 100644 --- a/NixSupport/default.nix +++ b/NixSupport/default.nix @@ -34,6 +34,8 @@ in pkgs.stdenv.mkDerivation { name = "app"; buildPhase = '' + runHook preBuild + mkdir -p build # When npm install is executed by the project's makefile it will fail with: @@ -70,8 +72,12 @@ in # make -j1 $SCRIPT_TARGETS; fi; + + runHook postBuild ''; installPhase = '' + runHook preInstall + mkdir -p "$out" mkdir -p $out/bin $out/lib @@ -95,6 +101,8 @@ in done mv static "$out/lib/static" + + runHook postInstall ''; dontFixup = true; src = pkgs.nix-gitignore.gitignoreSource [] projectPath;