gn: run hooks in build phases

Signed-off-by: Marcin Serwin <marcin@serwin.dev>

+12
+12
pkgs/by-name/gn/gn/package.nix
··· 43 hardeningDisable = [ "format" ]; 44 45 configurePhase = '' 46 python build/gen.py --no-last-commit-position 47 cat > out/last_commit_position.h << EOF 48 #ifndef OUT_LAST_COMMIT_POSITION_H_ ··· 53 54 #endif // OUT_LAST_COMMIT_POSITION_H_ 55 EOF 56 ''; 57 58 buildPhase = '' 59 ninja -j $NIX_BUILD_CORES -C out gn 60 ''; 61 62 installPhase = '' 63 install -vD out/gn "$out/bin/gn" 64 ''; 65 66 setupHook = ./setup-hook.sh;
··· 43 hardeningDisable = [ "format" ]; 44 45 configurePhase = '' 46 + runHook preConfigure 47 + 48 python build/gen.py --no-last-commit-position 49 cat > out/last_commit_position.h << EOF 50 #ifndef OUT_LAST_COMMIT_POSITION_H_ ··· 55 56 #endif // OUT_LAST_COMMIT_POSITION_H_ 57 EOF 58 + 59 + runHook postConfigure 60 ''; 61 62 buildPhase = '' 63 + runHook preBuild 64 + 65 ninja -j $NIX_BUILD_CORES -C out gn 66 + 67 + runHook postBuild 68 ''; 69 70 installPhase = '' 71 + runHook preInstall 72 + 73 install -vD out/gn "$out/bin/gn" 74 + 75 + runHook postInstall 76 ''; 77 78 setupHook = ./setup-hook.sh;