2023-05-24 13:37:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, fetchpatch
|
|
|
|
, gobject-introspection
|
|
|
|
, intltool
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "onioncircuits";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.tails.boum.org";
|
|
|
|
owner = "tails";
|
|
|
|
repo = "onioncircuits";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-O4tSbKBTmve4u8bXVg128RLyuxvTbU224JV8tQ+aDAQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
intltool
|
|
|
|
wrapGAppsHook
|
2023-10-19 13:55:26 +00:00
|
|
|
python3.pkgs.distutils-extra
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pygobject3
|
|
|
|
stem
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://tails.boum.org";
|
|
|
|
description = "GTK application to display Tor circuits and streams";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "onioncircuits";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ milran ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|