diff --git a/pkgs/by-name/pa/patchPpdFilesHook/patch-ppd-hook.sh b/pkgs/by-name/pa/patchPpdFilesHook/patch-ppd-hook.sh index 822714636415..ad86cc7aac50 100644 --- a/pkgs/by-name/pa/patchPpdFilesHook/patch-ppd-hook.sh +++ b/pkgs/by-name/pa/patchPpdFilesHook/patch-ppd-hook.sh @@ -5,7 +5,7 @@ fixupOutputHooks+=(_patchPpdFileCommands4fixupOutputHooks) # Install a hook for the `fixupPhase`: # If the variable `ppdFileCommands` contains a list of # executable names, the hook calls `patchPpdFileCommands` -# on each output's `/share/cups/model` and `/share/ppds` +# on each output's `/share/cups/model` and `/share/ppd` # directories in order to replace calls to those executables. _patchPpdFileCommands4fixupOutputHooks () { @@ -13,8 +13,8 @@ _patchPpdFileCommands4fixupOutputHooks () { if [[ -d $prefix/share/cups/model ]]; then patchPpdFileCommands "$prefix/share/cups/model" $ppdFileCommands fi - if [[ -d $prefix/share/ppds ]]; then - patchPpdFileCommands "$prefix/share/ppds" $ppdFileCommands + if [[ -d $prefix/share/ppd ]]; then + patchPpdFileCommands "$prefix/share/ppd" $ppdFileCommands fi } diff --git a/pkgs/by-name/pa/patchPpdFilesHook/test.nix b/pkgs/by-name/pa/patchPpdFilesHook/test.nix index ae49114a296a..9ee1feb9f22d 100644 --- a/pkgs/by-name/pa/patchPpdFilesHook/test.nix +++ b/pkgs/by-name/pa/patchPpdFilesHook/test.nix @@ -33,10 +33,10 @@ stdenv.mkDerivation { ppdFileCommands = [ "cmp" ]; preFixup = '' install -D "${input}" "${placeholder "out"}/share/cups/model/test.ppd" - install -D "${input}" "${placeholder "out"}/share/ppds/test.ppd" + install -D "${input}" "${placeholder "out"}/share/ppd/test.ppd" ''; postFixup = '' diff --color --report-identical-files "${output}" "${placeholder "out"}/share/cups/model/test.ppd" - diff --color --report-identical-files "${output}" "${placeholder "out"}/share/ppds/test.ppd" + diff --color --report-identical-files "${output}" "${placeholder "out"}/share/ppd/test.ppd" ''; }