onioncircuits: 0.5 -> 0.7
This commit is contained in:
parent
b07b3998f1
commit
bac1ad867f
|
@ -1,23 +1,52 @@
|
||||||
{ stdenv, lib, fetchgit, python3, intltool, gtk3, gobject-introspection, gnome }:
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitLab
|
||||||
|
, fetchpatch
|
||||||
|
, gnome
|
||||||
|
, gobject-introspection
|
||||||
|
, gtk3
|
||||||
|
, intltool
|
||||||
|
, python3
|
||||||
|
, wrapGAppsHook
|
||||||
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "onioncircuits";
|
pname = "onioncircuits";
|
||||||
version = "0.5";
|
version = "0.7";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitLab {
|
||||||
url = "https://git-tails.immerda.ch/onioncircuits/";
|
domain = "gitlab.tails.boum.org";
|
||||||
|
owner = "tails";
|
||||||
|
repo = "onioncircuits";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "13mqif9b9iajpkrl9ijspdnvy82kxhprxd5mw3njk68rcn4z2pcm";
|
sha256 = "sha256-O4tSbKBTmve4u8bXVg128RLyuxvTbU224JV8tQ+aDAQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ intltool ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ gtk3 gobject-introspection ];
|
gobject-introspection
|
||||||
propagatedBuildInputs = with python3.pkgs; [ stem distutils_extra pygobject3 ];
|
intltool
|
||||||
|
wrapGAppsHook
|
||||||
|
python3.pkgs.distutils_extra
|
||||||
|
];
|
||||||
|
|
||||||
postFixup = ''
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
wrapProgram "$out/bin/onioncircuits" \
|
pygobject3
|
||||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
stem
|
||||||
--prefix XDG_DATA_DIRS : "$out/share:${gnome.adwaita-icon-theme}/share"
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix https://gitlab.tails.boum.org/tails/onioncircuits/-/merge_requests/4
|
||||||
|
(fetchpatch {
|
||||||
|
name = "fix-setuptool-package-discovery.patch";
|
||||||
|
url = "https://gitlab.tails.boum.org/tails/onioncircuits/-/commit/4c620c77f36f540fa27041fcbdeaf05c9f57826c.patch";
|
||||||
|
sha256 = "sha256-WXqyDa2meRMMHkHLO5Xl7x43KUGtlsai+eOVzUGUPpo=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/etc/apparmor.d
|
||||||
|
|
||||||
|
cp apparmor/usr.bin.onioncircuits $out/etc/apparmor.d
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -25,7 +54,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
homepage = "https://tails.boum.org";
|
homepage = "https://tails.boum.org";
|
||||||
description = "GTK application to display Tor circuits and streams";
|
description = "GTK application to display Tor circuits and streams";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = [ ];
|
maintainers = with maintainers; [ milran ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue