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:
@@ -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" ];
|
||||
|
||||
Reference in New Issue
Block a user