diff --git a/pkgs/by-name/ap/apt-offline/package.nix b/pkgs/by-name/ap/apt-offline/package.nix index 39ab2613da22..124aadf1acb2 100644 --- a/pkgs/by-name/ap/apt-offline/package.nix +++ b/pkgs/by-name/ap/apt-offline/package.nix @@ -2,6 +2,7 @@ , fetchFromGitHub , python3Packages , gnupg +, installShellFiles }: let @@ -18,6 +19,8 @@ in python3Packages.buildPythonApplication { inherit pname version src; + nativeBuildInputs = [ installShellFiles ]; + postPatch = '' substituteInPlace org.debian.apt.aptoffline.policy \ --replace /usr/bin/ "$out/bin" @@ -26,6 +29,10 @@ python3Packages.buildPythonApplication { --replace /usr/bin/gpgv "${lib.getBin gnupg}/bin/gpgv" ''; + postInstall = '' + installManPage apt-offline.8 + ''; + postFixup = '' rm "$out/bin/apt-offline-gui" "$out/bin/apt-offline-gui-pkexec" ''; @@ -34,6 +41,8 @@ python3Packages.buildPythonApplication { pythonImportsCheck = [ "apt_offline_core" ]; + outputs = [ "out" "man" ]; + meta = { homepage = "https://github.com/rickysarraf/apt-offline"; description = "Offline APT package manager";