Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save katrinafyi/b496801cdecd0631d40684af910fc205 to your computer and use it in GitHub Desktop.
Save katrinafyi/b496801cdecd0631d40684af910fc205 to your computer and use it in GitHub Desktop.
From b07887d9ce7a73f251221565a526d8dc6439b673 Mon Sep 17 00:00:00 2001
From: Kait Lam <k@rina.fyi>
Date: Sat, 17 Jun 2023 12:22:55 +1000
Subject: [PATCH 1/5] update rutorrent to v4.1.6-hotfix
---
pkgs/applications/networking/p2p/rutorrent/default.nix | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkgs/applications/networking/p2p/rutorrent/default.nix b/pkgs/applications/networking/p2p/rutorrent/default.nix
index df114d7e0b4bf5..75aa9aba834d3a 100644
--- a/pkgs/applications/networking/p2p/rutorrent/default.nix
+++ b/pkgs/applications/networking/p2p/rutorrent/default.nix
@@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "rutorrent";
- version = "4.0.1-hotfix";
+ version = "v4.1.6-hotfix";
src = fetchFromGitHub {
owner = "Novik";
repo = "ruTorrent";
rev = "v${version}";
- sha256 = "GmAF1doqkEX2xyu+hsvchwNuXs8xvtYs4s14MPcxKKk=";
+ sha256 = "0000000000000000000000000000000000000000000000000000";
};
installPhase = ''
From 10fc102ba0d53317be62962339a60a947b4a8f20 Mon Sep 17 00:00:00 2001
From: Kait Lam <k@rina.fyi>
Date: Sat, 17 Jun 2023 12:29:33 +1000
Subject: [PATCH 2/5] fix rutorrent version number.
---
pkgs/applications/networking/p2p/rutorrent/default.nix | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgs/applications/networking/p2p/rutorrent/default.nix b/pkgs/applications/networking/p2p/rutorrent/default.nix
index 75aa9aba834d3a..6c1e41ee85405c 100644
--- a/pkgs/applications/networking/p2p/rutorrent/default.nix
+++ b/pkgs/applications/networking/p2p/rutorrent/default.nix
@@ -2,7 +2,7 @@
stdenv.mkDerivation rec {
pname = "rutorrent";
- version = "v4.1.6-hotfix";
+ version = "4.1.6-hotfix";
src = fetchFromGitHub {
owner = "Novik";
From f89460f68e9f9a4aec9fc4c057020281fa15bc98 Mon Sep 17 00:00:00 2001
From: Kait Lam <k@rina.fyi>
Date: Sat, 17 Jun 2023 12:33:46 +1000
Subject: [PATCH 3/5] Update default.nix
---
pkgs/applications/networking/p2p/rutorrent/default.nix | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgs/applications/networking/p2p/rutorrent/default.nix b/pkgs/applications/networking/p2p/rutorrent/default.nix
index 6c1e41ee85405c..c27f370bdb5333 100644
--- a/pkgs/applications/networking/p2p/rutorrent/default.nix
+++ b/pkgs/applications/networking/p2p/rutorrent/default.nix
@@ -2,7 +2,7 @@
stdenv.mkDerivation rec {
pname = "rutorrent";
- version = "4.1.6-hotfix";
+ version = "4.1.6";
src = fetchFromGitHub {
owner = "Novik";
From db86a3f0772e7cd5205303f5dd7a8ec912cc927e Mon Sep 17 00:00:00 2001
From: Kait Lam <k@rina.fyi>
Date: Sat, 17 Jun 2023 12:37:12 +1000
Subject: [PATCH 4/5] Update default.nix
---
pkgs/applications/networking/p2p/rutorrent/default.nix | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgs/applications/networking/p2p/rutorrent/default.nix b/pkgs/applications/networking/p2p/rutorrent/default.nix
index c27f370bdb5333..fc8b1abf203adb 100644
--- a/pkgs/applications/networking/p2p/rutorrent/default.nix
+++ b/pkgs/applications/networking/p2p/rutorrent/default.nix
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
owner = "Novik";
repo = "ruTorrent";
rev = "v${version}";
- sha256 = "0000000000000000000000000000000000000000000000000000";
+ sha256 = "GyyW4QJYHcz49sv4oj4LmtzNb1qFYKSgfCiIyo1gIPY=";
};
installPhase = ''
From 2aabb4638c0fb9db1bfbe52d429b275a9ef1c60d Mon Sep 17 00:00:00 2001
From: Kait Lam <k@rina.fyi>
Date: Sat, 17 Jun 2023 13:02:32 +1000
Subject: [PATCH 5/5] fix missing $throttleMaxSpeed in rutorrent config.php.
this caused the throttle plugin to fail loading. see: https://github.com/Novik/ruTorrent/commit/06222a00375bdd0f1f1b5b58bda29e7025316428
---
nixos/modules/services/web-apps/rutorrent.nix | 3 +++
1 file changed, 3 insertions(+)
diff --git a/nixos/modules/services/web-apps/rutorrent.nix b/nixos/modules/services/web-apps/rutorrent.nix
index eea200ca8d22b3..fd87d01fe14cee 100644
--- a/nixos/modules/services/web-apps/rutorrent.nix
+++ b/nixos/modules/services/web-apps/rutorrent.nix
@@ -176,6 +176,9 @@ in {
$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!
+ $throttleMaxSpeed = 327625*1024; // DO NOT EDIT THIS LINE!!! DO NOT COMMENT THIS LINE!!!
+ // Can't be greater then 327625*1024 due to limitation in libtorrent ResourceManager::set_max_upload_unchoked function.
+
$pathToExternals = array(
"php" => "${pkgs.php}/bin/php", // Something like /usr/bin/php. If empty, will be found in PATH.
"curl" => "${pkgs.curl}/bin/curl", // Something like /usr/bin/curl. If empty, will be found in PATH.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment