apt-offline: 1.8.1 -> unstable-2021-04-11
This commit is contained in:
parent
ba1af18d27
commit
ba15b39851
|
@ -1,22 +1,39 @@
|
||||||
{ lib, fetchFromGitHub, python3Packages }:
|
{ lib, fetchFromGitHub, python3Packages, unstableGitUpdater, gnupg }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
version = "1.8.1";
|
|
||||||
pname = "apt-offline";
|
pname = "apt-offline";
|
||||||
|
version = "unstable-2021-04-11";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rickysarraf";
|
owner = "rickysarraf";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "4e4b3281d004d1ece4833b7680e2b5b091402a03";
|
||||||
sha256 = "0k79d1d8jiwg1s684r05njmk1dz8gsb8a9bl4agz7m31snc11j84";
|
sha256 = "1lk4186h2wc8fphd592rhq7yj4kgc7jjawx4pjrs6pg4n0q32pl6";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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"
|
||||||
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
# Requires python-qt4 (feel free to get it working).
|
pythonimportsCheck = [ "apt-offline" ];
|
||||||
preFixup = ''rm "$out/bin/apt-offline-gui"'';
|
|
||||||
|
passthru.updateScript = unstableGitUpdater {
|
||||||
|
url = "https://github.com/rickysarraf/apt-offline.git";
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/rickysarraf/apt-offline";
|
||||||
description = "Offline APT package manager";
|
description = "Offline APT package manager";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
|
|
Loading…
Reference in a new issue