mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
apt-offline: install manpage
Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
This commit is contained in:
parent
313a88f600
commit
75e612587b
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user