diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-02-25 00:03:06 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-03-01 15:13:02 +0100 |
commit | 6b4d057b667e0f05fe36bd385aa81dc69f709bc3 (patch) | |
tree | 5b43a0d53a8e5b95023f18699dae8ec79acf07d2 /pkgs/tools/graphics/netpbm | |
parent | 8ea075bcb9b959f48fa0100bc94cae17713b31ea (diff) |
netpbm: add pre/post phase hooks
Diffstat (limited to 'pkgs/tools/graphics/netpbm')
-rw-r--r-- | pkgs/tools/graphics/netpbm/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/netpbm/default.nix b/pkgs/tools/graphics/netpbm/default.nix index b5a46f22533da..9e6e951140651 100644 --- a/pkgs/tools/graphics/netpbm/default.nix +++ b/pkgs/tools/graphics/netpbm/default.nix @@ -46,6 +46,8 @@ stdenv.mkDerivation { ] ++ lib.optional enableX11 libX11; configurePhase = '' + runHook preConfigure + cp config.mk.in config.mk echo "STATICLIB_TOO = n" >> config.mk substituteInPlace "config.mk" \ @@ -57,6 +59,8 @@ stdenv.mkDerivation { echo "LDSHLIB=-dynamiclib -install_name $out/lib/libnetpbm.\$(MAJ).dylib" >> config.mk echo "NETPBMLIBTYPE = dylib" >> config.mk echo "NETPBMLIBSUFFIX = dylib" >> config.mk + + runHook postConfigure ''; preBuild = '' @@ -71,6 +75,8 @@ stdenv.mkDerivation { enableParallelBuilding = false; installPhase = '' + runHook preInstall + make package pkgdir=$out rm -rf $out/link $out/*_template $out/{pkginfo,README,VERSION} $out/man/web @@ -82,6 +88,8 @@ stdenv.mkDerivation { for prog in ppmquant; do wrapProgram "$out/bin/$prog" --prefix PATH : "$out/bin" done + + runHook postInstall ''; passthru.updateScript = ./update.sh; |