2021-07-04 02:40:35 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, unstableGitUpdater, gnupg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "apt-offline";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "unstable-2021-07-25";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rickysarraf";
|
|
|
|
repo = pname;
|
2021-09-18 10:52:07 +00:00
|
|
|
rev = "7cfa5fc2736be2c832d0ddfa9255175a1f33158d";
|
|
|
|
sha256 = "xX2wcvqoPdgqBAWvQmSd//YWMC4pPmrq0vQjhDUKwEA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace org.debian.apt.aptoffline.policy \
|
|
|
|
--replace /usr/bin/ "$out/bin"
|
|
|
|
|
|
|
|
substituteInPlace apt_offline_core/AptOfflineCoreLib.py \
|
|
|
|
--replace /usr/bin/gpgv "${gnupg}/bin/gpgv"
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
rm "$out/bin/apt-offline-gui"
|
|
|
|
rm "$out/bin/apt-offline-gui-pkexec"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
pythonimportsCheck = [ "apt-offline" ];
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
|
|
url = "https://github.com/rickysarraf/apt-offline.git";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-07-04 02:40:35 +00:00
|
|
|
homepage = "https://github.com/rickysarraf/apt-offline";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Offline APT package manager";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|