Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkgs/applications/networking/p2p/fragments/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
, rustPlatform
, rustc
, sqlite
, transmission
, transmission_3
, wrapGAppsHook4
}:

let
patchedTransmission = transmission.overrideAttrs (oldAttrs: {
patchedTransmission = transmission_3.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or []) ++ [
(fetchpatch {
url = "https://raw.githubusercontent.com/flathub/de.haeckerfelix.Fragments/2aee477c8e26a24570f8dbbdbd1c49e017ae32eb/transmission_pdeathsig.patch";
Expand Down
24 changes: 24 additions & 0 deletions pkgs/applications/networking/p2p/libutp/3.3.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ stdenv, lib, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
pname = "libutp";
version = "unstable-2017-01-02";

src = fetchFromGitHub {
# Use transmission fork from post-3.3-transmission branch
owner = "transmission";
repo = pname;
rev = "fda9f4b3db97ccb243fcbed2ce280eb4135d705b";
sha256 = "CvuZLOBksIl/lS6LaqOIuzNvX3ihlIPjI3Eqwo7YJH0=";
};

nativeBuildInputs = [ cmake ];

meta = with lib; {
description = "uTorrent Transport Protocol library";
homepage = "https://github.com/transmission/libutp";
license = licenses.mit;
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.unix;
};
}
27 changes: 20 additions & 7 deletions pkgs/applications/networking/p2p/libutp/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{ stdenv, lib, fetchFromGitHub, cmake }:
{ stdenv
, lib
, fetchFromGitHub
, cmake
, unstableGitUpdater
}:

stdenv.mkDerivation rec {
pname = "libutp";
version = "unstable-2017-01-02";
version = "unstable-2023-03-05";

src = fetchFromGitHub {
# Use transmission fork from post-3.3-transmission branch
# Use transmission fork from post-3.4-transmission branch
owner = "transmission";
repo = pname;
rev = "fda9f4b3db97ccb243fcbed2ce280eb4135d705b";
sha256 = "CvuZLOBksIl/lS6LaqOIuzNvX3ihlIPjI3Eqwo7YJH0=";
repo = "libutp";
rev = "9cb9f9c4f0073d78b08d6542cebaea6564ecadfe";
sha256 = "dpbX1h/gpuVIAXC4hwwuRwQDJ0pwVVEsgemOVN0Dv9Q=";
};

nativeBuildInputs = [ cmake ];
nativeBuildInputs = [
cmake
];

passthru = {
updateScript = unstableGitUpdater {
branch = "post-3.4-transmission";
};
};

meta = with lib; {
description = "uTorrent Transport Protocol library";
Expand Down
8 changes: 4 additions & 4 deletions pkgs/applications/networking/p2p/torrential/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
, libevent
, libgee
, libnatpmp
, libtransmission
, libutp
, transmission_3
, libutp_3_3
, miniupnpc
, openssl
, pantheon
Expand Down Expand Up @@ -54,8 +54,8 @@ stdenv.mkDerivation rec {
libevent
libgee
libnatpmp
libtransmission
libutp
transmission_3
libutp_3_3
miniupnpc
openssl
pantheon.granite7
Expand Down
79 changes: 79 additions & 0 deletions pkgs/applications/networking/p2p/transmission/3.x.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchurl
, cmake
, pkg-config
, openssl
, curl
, libevent
, inotify-tools
, zlib
, pcre
, libb64
, libutp_3_3
, miniupnpc
, dht
, libnatpmp
, libiconv
}:

stdenv.mkDerivation (finalAttrs: {
pname = "transmission3";
version = "3.00";

src = fetchFromGitHub {
owner = "transmission";
repo = "transmission";
rev = finalAttrs.version;
sha256 = "0ccg0km54f700x9p0jsnncnwvfnxfnxf7kcm7pcx1cj0vw78924z";
fetchSubmodules = true;
};

patches = [
# fix build with openssl 3.0
(fetchurl {
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/net-p2p/transmission/files/transmission-3.00-openssl-3.patch";
hash = "sha256-peVrkGck8AfbC9uYNfv1CIu1alIewpca7A6kRXjVlVs=";
})
];

nativeBuildInputs = [
pkg-config
cmake
];

buildInputs = [
openssl
curl
libevent
zlib
pcre
libb64
libutp_3_3
miniupnpc
dht
libnatpmp
] ++ lib.optionals stdenv.isLinux [
inotify-tools
] ++ lib.optionals stdenv.isDarwin [
libiconv
];

cmakeFlags = [
"-DENABLE_MAC=OFF" # requires xcodebuild
"-DENABLE_GTK=OFF"
"-DENABLE_QT=OFF"
"-DENABLE_DAEMON=ON"
"-DENABLE_CLI=OFF"
"-DINSTALL_LIB=ON"
];

meta = {
description = "Old version of libtransmission library for apps that depend on it";
homepage = "http://www.transmissionbt.com/";
license = lib.licenses.gpl2Plus; # parts are under MIT

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then the license should be both

maintainers = with lib.maintainers; [ ];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who wants to?

platforms = lib.platforms.unix;
};
})
Loading