2021-06-25 08:08:10 +02:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, unstableGitUpdater, gnupg }:
|
2014-02-26 06:33:51 +01:00
|
|
|
|
2018-08-03 19:13:38 +02:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "apt-offline";
|
2021-08-27 20:30:24 +02:00
|
|
|
version = "unstable-2021-07-25";
|
2014-02-26 06:33:51 +01:00
|
|
|
|
2018-08-03 19:13:38 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rickysarraf";
|
|
|
|
repo = pname;
|
2021-08-27 20:30:24 +02:00
|
|
|
rev = "7cfa5fc2736be2c832d0ddfa9255175a1f33158d";
|
|
|
|
sha256 = "xX2wcvqoPdgqBAWvQmSd//YWMC4pPmrq0vQjhDUKwEA=";
|
2014-02-26 06:33:51 +01:00
|
|
|
};
|
|
|
|
|
2021-06-25 08:08:10 +02: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"
|
|
|
|
'';
|
|
|
|
|
2014-02-26 06:33:51 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-06-25 08:08:10 +02:00
|
|
|
pythonimportsCheck = [ "apt-offline" ];
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
|
|
url = "https://github.com/rickysarraf/apt-offline.git";
|
|
|
|
};
|
2014-02-26 06:33:51 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-06-25 08:08:10 +02:00
|
|
|
homepage = "https://github.com/rickysarraf/apt-offline";
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "Offline APT package manager";
|
2014-02-26 06:48:36 +01:00
|
|
|
license = licenses.gpl3;
|
2020-02-16 23:12:44 +01:00
|
|
|
maintainers = [ ];
|
2014-03-10 21:38:24 +01:00
|
|
|
platforms = platforms.linux;
|
2014-02-26 06:33:51 +01:00
|
|
|
};
|
|
|
|
}
|