apt-offline: install manpage

Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
This commit is contained in:
h7x4 2024-06-12 23:08:14 +02:00
parent 313a88f600
commit 75e612587b
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146

View File

@ -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";