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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

85 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv
, lib
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
, wrapGAppsHook4
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
, gtk4
2019-03-03 14:00:41 +01:00
, 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";
version = "3.0.0";
2019-03-03 14:00:41 +01:00
src = fetchFromGitHub {
owner = "davidmhewitt";
repo = "torrential";
rev = version;
sha256 = "sha256-uHc/VNtbhetmGyuhynZH1TvxJscVX17eWO6dzX6Ft3A=";
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
wrapGAppsHook4
2019-03-03 14:00:41 +01:00
];
buildInputs = [
curl
2021-09-11 15:05:26 +02:00
dht
2019-03-03 14:00:41 +01:00
glib
gtk4
2019-03-03 14:00:41 +01:00
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.granite7
2019-03-03 14:00:41 +01:00
];
2021-09-11 15:05:26 +02:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
substituteInPlace meson/post_install.py \
--replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
2021-09-11 15:05:26 +02:00
'';
2019-12-23 00:19:30 +01:00
passthru = {
updateScript = nix-update-script { };
2019-12-23 00:19:30 +01:00
};
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;
mainProgram = "com.github.davidmhewitt.torrential";
2019-03-03 14:00:41 +01:00
};
}