diff --git a/pkgs/by-name/gn/gn/package.nix b/pkgs/by-name/gn/gn/package.nix index 8339722c0cbc..3f54d8a0fe8b 100644 --- a/pkgs/by-name/gn/gn/package.nix +++ b/pkgs/by-name/gn/gn/package.nix @@ -43,6 +43,8 @@ stdenv.mkDerivation { hardeningDisable = [ "format" ]; configurePhase = '' + runHook preConfigure + python build/gen.py --no-last-commit-position cat > out/last_commit_position.h << EOF #ifndef OUT_LAST_COMMIT_POSITION_H_ @@ -53,14 +55,24 @@ stdenv.mkDerivation { #endif // OUT_LAST_COMMIT_POSITION_H_ EOF + + runHook postConfigure ''; buildPhase = '' + runHook preBuild + ninja -j $NIX_BUILD_CORES -C out gn + + runHook postBuild ''; installPhase = '' + runHook preInstall + install -vD out/gn "$out/bin/gn" + + runHook postInstall ''; setupHook = ./setup-hook.sh;