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
1 changed files with 4 additions and 0 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue