Skip to content

Commit

Permalink
Added nix build hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed May 20, 2024
1 parent 459e72c commit dcd57de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NixSupport/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -70,8 +72,12 @@ in
#
make -j1 $SCRIPT_TARGETS;
fi;
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p "$out"
mkdir -p $out/bin $out/lib
Expand All @@ -95,6 +101,8 @@ in
done
mv static "$out/lib/static"
runHook postInstall
'';
dontFixup = true;
src = pkgs.nix-gitignore.gitignoreSource [] projectPath;
Expand Down

0 comments on commit dcd57de

Please sign in to comment.