linuxPackages.nvidiaPackages.dc_5{3,7}5.fabricmanager: use {pre,post}Install hooks

This commit is contained in:
Doron Behar
2026-03-02 16:47:10 +02:00
parent feb1d11988
commit ac91b52cb8
@@ -27,6 +27,8 @@ stdenv.mkDerivation rec {
};
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share/nvidia-fabricmanager}
for bin in nv{-fabricmanager,switch-audit};do
${patchelf}/bin/patchelf \
@@ -47,6 +49,8 @@ stdenv.mkDerivation rec {
mv $d $out/.
done
patchShebangs $out/bin
runHook postInstall
'';
doCheck = true;