mprime: add pre phase and post phase hooks

This commit is contained in:
John Titor
2026-05-24 18:00:13 +05:30
parent f511847d35
commit fd2acaeefa
+4
View File
@@ -81,14 +81,18 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelBuilding = true;
buildPhase = ''
runHook preBuild
make -C gwnum -f ${gwnum} ''${enableParallelBuilding:+-j$NIX_BUILD_CORES}
make -C ${srcDir} ''${enableParallelBuilding:+-j$NIX_BUILD_CORES}
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm555 -t $out/bin ${srcDir}/mprime
install -Dm444 -t $out/${docDir} license.txt readme.txt stress.txt undoc.txt
runHook postInstall
'';
meta = {