cups-kyocera (cups driver): call {pre,post}Install

Add `preInstall` and `postInstall` to the `installPhase` to
permit package overrides to add commands to the install phase.

Suggested by r-rmcgibbo bot in
https://github.com/NixOS/nixpkgs/pull/133537#issuecomment-897437621
This commit is contained in:
Yarny0 2021-08-22 19:40:05 +02:00
parent 075d112131
commit 2c28e0dc18

View file

@ -31,6 +31,8 @@ stdenv.mkDerivation {
nativeBuildInputs = [ patchPpdFilesHook ];
installPhase = ''
runHook preInstall
tar -xvf ${platform}/Global/English.tar.gz
install -Dm755 English/rastertokpsl $out/lib/cups/filter/rastertokpsl
patchelf \
@ -41,6 +43,8 @@ stdenv.mkDerivation {
mkdir -p $out/share/cups/model/Kyocera
cd English
cp *.ppd $out/share/cups/model/Kyocera
runHook postInstall
'';
ppdFileCommands = [ "rastertokpsl" ];