torrential: 1.1.0 -> 2.0.0

This commit is contained in:
Bobby Rong 2021-09-11 21:05:26 +08:00
parent 2d3131692e
commit 524b819690
No known key found for this signature in database
GPG key ID: ED07364437C91161

View file

@ -1,56 +1,70 @@
{ lib, stdenv { lib, stdenv
, fetchFromGitHub , fetchFromGitHub
, nix-update-script , nix-update-script
, cmake , desktop-file-utils
, meson
, ninja
, pkg-config , pkg-config
, vala_0_40 , python3
, pantheon , vala
, wrapGAppsHook
, curl , curl
, dht
, glib , glib
, gtk3 , gtk3
, libb64 , libb64
, libevent , libevent
, libgee , libgee
, libnatpmp , libnatpmp
, libunity , libtransmission
, libutp
, miniupnpc , miniupnpc
, openssl , openssl
, wrapGAppsHook , pantheon
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "torrential"; pname = "torrential";
version = "1.1.0"; version = "2.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "davidmhewitt"; owner = "davidmhewitt";
repo = "torrential"; repo = "torrential";
rev = version; rev = version;
fetchSubmodules = true; sha256 = "sha256-78eNIz7Lgeq4LTog04TMNuL27Gv0UZ0poBaw8ia1R/g=";
sha256 = "17aby0c17ybyzyzyc1cg1j6q1a186801fy84avlaxahqp7vdammx";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
cmake desktop-file-utils
vala_0_40 # https://github.com/davidmhewitt/torrential/issues/135 meson
ninja
pkg-config pkg-config
python3
vala
wrapGAppsHook wrapGAppsHook
]; ];
buildInputs = [ buildInputs = [
curl curl
dht
glib glib
gtk3 gtk3
libb64 libb64
libevent libevent
libgee libgee
libnatpmp libnatpmp
libunity libtransmission
libutp
miniupnpc miniupnpc
openssl openssl
pantheon.granite pantheon.granite
]; ];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
passthru = { passthru = {
updateScript = nix-update-script { updateScript = nix-update-script {
attrPath = pname; attrPath = pname;
@ -60,8 +74,8 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "Download torrents in style with this speedy, minimalist torrent client for elementary OS"; description = "Download torrents in style with this speedy, minimalist torrent client for elementary OS";
homepage = "https://github.com/davidmhewitt/torrential"; homepage = "https://github.com/davidmhewitt/torrential";
maintainers = with maintainers; [ xiorcale ] ++ pantheon.maintainers; maintainers = with maintainers; [ xiorcale ] ++ teams.pantheon.members;
platforms = platforms.linux; platforms = platforms.linux;
license = licenses.gpl3; license = licenses.gpl2Plus;
}; };
} }