gn: run hooks in build phases

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

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