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:
parent
075d112131
commit
2c28e0dc18
|
@ -31,6 +31,8 @@ stdenv.mkDerivation {
|
||||||
nativeBuildInputs = [ patchPpdFilesHook ];
|
nativeBuildInputs = [ patchPpdFilesHook ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
tar -xvf ${platform}/Global/English.tar.gz
|
tar -xvf ${platform}/Global/English.tar.gz
|
||||||
install -Dm755 English/rastertokpsl $out/lib/cups/filter/rastertokpsl
|
install -Dm755 English/rastertokpsl $out/lib/cups/filter/rastertokpsl
|
||||||
patchelf \
|
patchelf \
|
||||||
|
@ -41,6 +43,8 @@ stdenv.mkDerivation {
|
||||||
mkdir -p $out/share/cups/model/Kyocera
|
mkdir -p $out/share/cups/model/Kyocera
|
||||||
cd English
|
cd English
|
||||||
cp *.ppd $out/share/cups/model/Kyocera
|
cp *.ppd $out/share/cups/model/Kyocera
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
ppdFileCommands = [ "rastertokpsl" ];
|
ppdFileCommands = [ "rastertokpsl" ];
|
||||||
|
|
Loading…
Reference in a new issue