diff --git a/pkgs/misc/cups/drivers/kyocera/default.nix b/pkgs/misc/cups/drivers/kyocera/default.nix index 12e6f5bb4bae..0a560e3188f6 100644 --- a/pkgs/misc/cups/drivers/kyocera/default.nix +++ b/pkgs/misc/cups/drivers/kyocera/default.nix @@ -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" ];