2023-04-21 03:32:02 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
2019-03-03 13:00:41 +00:00
|
|
|
fetchFromGitHub,
|
2020-07-29 16:33:39 +00:00
|
|
|
nix-update-script,
|
2021-09-11 13:05:26 +00:00
|
|
|
desktop-file-utils,
|
|
|
|
meson,
|
|
|
|
ninja,
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config,
|
2021-09-11 13:05:26 +00:00
|
|
|
python3,
|
|
|
|
vala,
|
2023-04-21 03:32:02 +00:00
|
|
|
wrapGAppsHook4,
|
2019-03-03 13:00:41 +00:00
|
|
|
curl,
|
2021-09-11 13:05:26 +00:00
|
|
|
dht,
|
2019-03-03 13:00:41 +00:00
|
|
|
glib,
|
2023-04-21 03:32:02 +00:00
|
|
|
gtk4,
|
2019-03-03 13:00:41 +00:00
|
|
|
libb64,
|
|
|
|
libevent,
|
|
|
|
libgee,
|
|
|
|
libnatpmp,
|
2024-06-10 07:54:49 +00:00
|
|
|
libtransmission_3,
|
2021-09-11 13:05:26 +00:00
|
|
|
libutp,
|
2019-03-03 13:00:41 +00:00
|
|
|
miniupnpc,
|
|
|
|
openssl,
|
2021-09-11 13:05:26 +00:00
|
|
|
pantheon,
|
2019-09-12 14:25:05 +00:00
|
|
|
}:
|
2019-03-03 13:00:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "torrential";
|
2023-04-21 03:32:02 +00:00
|
|
|
version = "3.0.0";
|
2019-03-03 13:00:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "davidmhewitt";
|
|
|
|
repo = "torrential";
|
|
|
|
rev = version;
|
2023-04-21 03:32:02 +00:00
|
|
|
sha256 = "sha256-uHc/VNtbhetmGyuhynZH1TvxJscVX17eWO6dzX6Ft3A=";
|
2019-03-03 13:00:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-09-11 13:05:26 +00:00
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2021-09-11 13:05:26 +00:00
|
|
|
python3
|
|
|
|
vala
|
2023-04-21 03:32:02 +00:00
|
|
|
wrapGAppsHook4
|
2019-03-03 13:00:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
2021-09-11 13:05:26 +00:00
|
|
|
dht
|
2019-03-03 13:00:41 +00:00
|
|
|
glib
|
2023-04-21 03:32:02 +00:00
|
|
|
gtk4
|
2019-03-03 13:00:41 +00:00
|
|
|
libb64
|
|
|
|
libevent
|
|
|
|
libgee
|
|
|
|
libnatpmp
|
2024-06-10 07:54:49 +00:00
|
|
|
libtransmission_3
|
2021-09-11 13:05:26 +00:00
|
|
|
libutp
|
2019-03-03 13:00:41 +00:00
|
|
|
miniupnpc
|
|
|
|
openssl
|
2023-04-21 03:32:02 +00:00
|
|
|
pantheon.granite7
|
2019-03-03 13:00:41 +00:00
|
|
|
];
|
|
|
|
|
2021-09-11 13:05:26 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
2023-04-21 03:32:02 +00:00
|
|
|
|
|
|
|
substituteInPlace meson/post_install.py \
|
|
|
|
--replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
|
2021-09-11 13:05:26 +00:00
|
|
|
'';
|
|
|
|
|
2019-12-22 23:19:30 +00:00
|
|
|
passthru = {
|
2022-12-25 22:11:14 +00:00
|
|
|
updateScript = nix-update-script { };
|
2019-12-22 23:19:30 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-03-03 13:00:41 +00:00
|
|
|
description = "Download torrents in style with this speedy, minimalist torrent client for elementary OS";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/davidmhewitt/torrential";
|
2021-09-11 13:05:26 +00:00
|
|
|
maintainers = with maintainers; [ xiorcale ] ++ teams.pantheon.members;
|
2019-03-03 13:00:41 +00:00
|
|
|
platforms = platforms.linux;
|
2021-09-11 13:05:26 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-11-03 10:27:38 +00:00
|
|
|
mainProgram = "com.github.davidmhewitt.torrential";
|
2019-03-03 13:00:41 +00:00
|
|
|
};
|
|
|
|
}
|