From 524b819690d43badf8e7b8000fb5893c58167111 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 11 Sep 2021 21:05:26 +0800 Subject: [PATCH] torrential: 1.1.0 -> 2.0.0 --- .../networking/p2p/torrential/default.nix | 40 +++++++++++++------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/networking/p2p/torrential/default.nix b/pkgs/applications/networking/p2p/torrential/default.nix index cbeb6afa4088..7290ec65ad56 100644 --- a/pkgs/applications/networking/p2p/torrential/default.nix +++ b/pkgs/applications/networking/p2p/torrential/default.nix @@ -1,56 +1,70 @@ { lib, stdenv , fetchFromGitHub , nix-update-script -, cmake +, desktop-file-utils +, meson +, ninja , pkg-config -, vala_0_40 -, pantheon +, python3 +, vala +, wrapGAppsHook , curl +, dht , glib , gtk3 , libb64 , libevent , libgee , libnatpmp -, libunity +, libtransmission +, libutp , miniupnpc , openssl -, wrapGAppsHook +, pantheon }: stdenv.mkDerivation rec { pname = "torrential"; - version = "1.1.0"; + version = "2.0.0"; src = fetchFromGitHub { owner = "davidmhewitt"; repo = "torrential"; rev = version; - fetchSubmodules = true; - sha256 = "17aby0c17ybyzyzyc1cg1j6q1a186801fy84avlaxahqp7vdammx"; + sha256 = "sha256-78eNIz7Lgeq4LTog04TMNuL27Gv0UZ0poBaw8ia1R/g="; }; nativeBuildInputs = [ - cmake - vala_0_40 # https://github.com/davidmhewitt/torrential/issues/135 + desktop-file-utils + meson + ninja pkg-config + python3 + vala wrapGAppsHook ]; buildInputs = [ curl + dht glib gtk3 libb64 libevent libgee libnatpmp - libunity + libtransmission + libutp miniupnpc openssl pantheon.granite ]; + postPatch = '' + chmod +x meson/post_install.py + patchShebangs meson/post_install.py + ''; + passthru = { updateScript = nix-update-script { attrPath = pname; @@ -60,8 +74,8 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Download torrents in style with this speedy, minimalist torrent client for elementary OS"; homepage = "https://github.com/davidmhewitt/torrential"; - maintainers = with maintainers; [ xiorcale ] ++ pantheon.maintainers; + maintainers = with maintainers; [ xiorcale ] ++ teams.pantheon.members; platforms = platforms.linux; - license = licenses.gpl3; + license = licenses.gpl2Plus; }; }