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.

83 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv
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
, wrapGAppsHook
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
, gtk3
, libb64
, libevent
, libgee
, libnatpmp
2021-09-11 13:05:26 +00:00
, libtransmission
, 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";
2021-12-09 00:39:09 +00:00
version = "2.0.1";
2019-03-03 13:00:41 +00:00
src = fetchFromGitHub {
owner = "davidmhewitt";
repo = "torrential";
rev = version;
2021-12-09 00:39:09 +00:00
sha256 = "sha256-W9Is6l8y5XSlPER2BLlf+cyMPPdEQuaP4xM59VhfDE0=";
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
2019-03-03 13:00:41 +00:00
wrapGAppsHook
];
buildInputs = [
curl
2021-09-11 13:05:26 +00:00
dht
2019-03-03 13:00:41 +00:00
glib
gtk3
libb64
libevent
libgee
libnatpmp
2021-09-11 13:05:26 +00:00
libtransmission
libutp
2019-03-03 13:00:41 +00:00
miniupnpc
openssl
pantheon.granite
];
2021-09-11 13:05:26 +00:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
2019-12-22 23:19:30 +00:00
passthru = {
updateScript = nix-update-script {
2019-12-22 23:19:30 +00:00
attrPath = pname;
};
};
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
};
}