nixpkgs/pkgs/by-name/to/torrential/package.nix

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

86 lines
1.5 KiB
Nix
Raw Normal View History

{
stdenv,
lib,
2019-03-03 13:00:41 +00:00
fetchFromGitHub,
nix-update-script,
2021-09-11 13:05:26 +00:00
desktop-file-utils,
meson,
ninja,
pkg-config,
2021-09-11 13:05:26 +00:00
python3,
vala,
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,
gtk4,
2019-03-03 13:00:41 +00:00
libb64,
libevent,
libgee,
libnatpmp,
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-03-03 13:00:41 +00:00
stdenv.mkDerivation rec {
pname = "torrential";
version = "3.0.0";
2019-03-03 13:00:41 +00:00
src = fetchFromGitHub {
owner = "davidmhewitt";
repo = "torrential";
rev = version;
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
pkg-config
2021-09-11 13:05:26 +00:00
python3
vala
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
gtk4
2019-03-03 13:00:41 +00:00
libb64
libevent
libgee
libnatpmp
libtransmission_3
2021-09-11 13:05:26 +00:00
libutp
2019-03-03 13:00:41 +00:00
miniupnpc
openssl
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
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 = {
updateScript = nix-update-script { };
2019-12-22 23:19:30 +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";
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;
mainProgram = "com.github.davidmhewitt.torrential";
2019-03-03 13:00:41 +00:00
};
}