nixpkgs-suyu/pkgs/applications/networking/p2p/torrential/default.nix

82 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv
2019-03-03 14:00:41 +01:00
, fetchFromGitHub
, nix-update-script
2021-09-11 15:05:26 +02:00
, desktop-file-utils
, meson
, ninja
, pkg-config
2021-09-11 15:05:26 +02:00
, python3
, vala
, wrapGAppsHook
2019-03-03 14:00:41 +01:00
, curl
2021-09-11 15:05:26 +02:00
, dht
2019-03-03 14:00:41 +01:00
, glib
, gtk3
, libb64
, libevent
, libgee
, libnatpmp
2021-09-11 15:05:26 +02:00
, libtransmission
, libutp
2019-03-03 14:00:41 +01:00
, miniupnpc
, openssl
2021-09-11 15:05:26 +02:00
, pantheon
}:
2019-03-03 14:00:41 +01:00
stdenv.mkDerivation rec {
pname = "torrential";
2021-09-11 15:05:26 +02:00
version = "2.0.0";
2019-03-03 14:00:41 +01:00
src = fetchFromGitHub {
owner = "davidmhewitt";
repo = "torrential";
rev = version;
2021-09-11 15:05:26 +02:00
sha256 = "sha256-78eNIz7Lgeq4LTog04TMNuL27Gv0UZ0poBaw8ia1R/g=";
2019-03-03 14:00:41 +01:00
};
nativeBuildInputs = [
2021-09-11 15:05:26 +02:00
desktop-file-utils
meson
ninja
pkg-config
2021-09-11 15:05:26 +02:00
python3
vala
2019-03-03 14:00:41 +01:00
wrapGAppsHook
];
buildInputs = [
curl
2021-09-11 15:05:26 +02:00
dht
2019-03-03 14:00:41 +01:00
glib
gtk3
libb64
libevent
libgee
libnatpmp
2021-09-11 15:05:26 +02:00
libtransmission
libutp
2019-03-03 14:00:41 +01:00
miniupnpc
openssl
pantheon.granite
];
2021-09-11 15:05:26 +02:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
2019-12-23 00:19:30 +01:00
passthru = {
updateScript = nix-update-script {
2019-12-23 00:19:30 +01:00
attrPath = pname;
};
};
meta = with lib; {
2019-03-03 14:00:41 +01:00
description = "Download torrents in style with this speedy, minimalist torrent client for elementary OS";
homepage = "https://github.com/davidmhewitt/torrential";
2021-09-11 15:05:26 +02:00
maintainers = with maintainers; [ xiorcale ] ++ teams.pantheon.members;
2019-03-03 14:00:41 +01:00
platforms = platforms.linux;
2021-09-11 15:05:26 +02:00
license = licenses.gpl2Plus;
2019-03-03 14:00:41 +01:00
};
}