git.iko.soy/typeable/nixpkgs
on master help sign in
libredirect: Add missing phase hooks
commit5ca02655057bb568f09b3aed4acee44e3f805291 authorNiklas Hambüchen <mail@nh2.me> dateSun 23 May 2021, 16:59 (5 years ago) parentbb1058f
1 file changed+8
pkgs/build-support/libredirect/default.nix+8
pkgs/build-support/libredirect/default.nix+8
@@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
1414 outputs = ["out" "hook"];
1515
1616 buildPhase = ''
17+ runHook preBuild
18+
1719 $CC -Wall -std=c99 -O3 -fPIC -ldl -shared \
1820 ${lib.optionalString stdenv.isDarwin "-Wl,-install_name,$out/lib/$libName"} \
1921 -o "$libName" \
@@ -22,9 +24,13 @@ stdenv.mkDerivation rec {
2224 if [ -n "$doInstallCheck" ]; then
2325 $CC -Wall -std=c99 -O3 test.c -o test
2426 fi
27+
28+ runHook postBuild
2529 '';
2630
2731 installPhase = ''
32+ runHook preInstall
33+
2834 install -vD "$libName" "$out/lib/$libName"
2935
3036 mkdir -p "$hook/nix-support"
@@ -36,6 +42,8 @@ stdenv.mkDerivation rec {
3642 export LD_PRELOAD="$out/lib/$libName"
3743 ''}
3844 SETUP_HOOK
45+
46+ runHook postInstall
3947 '';
4048
4149 doInstallCheck = true;