mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
Merge pull request #319385 from h7x4/pkgs-apt-offline-install-manpage
apt-offline: install manpage
This commit is contained in:
commit
493881d8be
@ -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