mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +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
|
, fetchFromGitHub
|
||||||
, python3Packages
|
, python3Packages
|
||||||
, gnupg
|
, gnupg
|
||||||
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -18,6 +19,8 @@ in
|
|||||||
python3Packages.buildPythonApplication {
|
python3Packages.buildPythonApplication {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace org.debian.apt.aptoffline.policy \
|
substituteInPlace org.debian.apt.aptoffline.policy \
|
||||||
--replace /usr/bin/ "$out/bin"
|
--replace /usr/bin/ "$out/bin"
|
||||||
@ -26,6 +29,10 @@ python3Packages.buildPythonApplication {
|
|||||||
--replace /usr/bin/gpgv "${lib.getBin gnupg}/bin/gpgv"
|
--replace /usr/bin/gpgv "${lib.getBin gnupg}/bin/gpgv"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installManPage apt-offline.8
|
||||||
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
rm "$out/bin/apt-offline-gui" "$out/bin/apt-offline-gui-pkexec"
|
rm "$out/bin/apt-offline-gui" "$out/bin/apt-offline-gui-pkexec"
|
||||||
'';
|
'';
|
||||||
@ -34,6 +41,8 @@ python3Packages.buildPythonApplication {
|
|||||||
|
|
||||||
pythonImportsCheck = [ "apt_offline_core" ];
|
pythonImportsCheck = [ "apt_offline_core" ];
|
||||||
|
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/rickysarraf/apt-offline";
|
homepage = "https://github.com/rickysarraf/apt-offline";
|
||||||
description = "Offline APT package manager";
|
description = "Offline APT package manager";
|
||||||
|
Loading…
Reference in New Issue
Block a user