diff --git a/pkgs/by-name/ap/apt-offline/package.nix b/pkgs/by-name/ap/apt-offline/package.nix index 124aadf1acb2..ba34dec6c0f8 100644 --- a/pkgs/by-name/ap/apt-offline/package.nix +++ b/pkgs/by-name/ap/apt-offline/package.nix @@ -23,10 +23,10 @@ python3Packages.buildPythonApplication { postPatch = '' substituteInPlace org.debian.apt.aptoffline.policy \ - --replace /usr/bin/ "$out/bin" + --replace-fail /usr/bin/ "$out/bin" substituteInPlace apt_offline_core/AptOfflineCoreLib.py \ - --replace /usr/bin/gpgv "${lib.getBin gnupg}/bin/gpgv" + --replace-fail /usr/bin/gpgv "${lib.getBin gnupg}/bin/gpgv" ''; postInstall = ''