Skip to content

Commit

Permalink
rtorrent: use vendored tinyxml2 for XMLRPC (#362158)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada authored Dec 6, 2024
2 parents f145dbd + 62ef0ec commit 7c4b748
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions pkgs/by-name/rt/rtorrent/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,22 @@
ncurses,
openssl,
pkg-config,
xmlrpc_c,
zlib,
nixosTests,
gitUpdater,
unstableGitUpdater,
}:

stdenv.mkDerivation rec {
pname = "rakshasa-rtorrent";
version = "0.10.0";
version = "0.10.0-unstable-2024-12-06";

src = fetchFromGitHub {
owner = "rakshasa";
repo = "rtorrent";
rev = "v${version}";
hash = "sha256-G/30Enycpqg/pWC95CzT9LY99kN4tI+S8aSQhnQO+M8=";
rev = "5a200f5d8f8bc8ed28dfc948321451585f724b15";
hash = "sha256-RLFOHJLpt7xkrEvYwEBWs5wQRThrK1N2olI64p2TPeA=";
};

patches = [
# fix: use fsync for osx builds
(fetchpatch {
url = "https://github.com/rakshasa/rtorrent/commit/5ce84929e44fbe3f8d6cf142e3133f43afa4071f.patch";
hash = "sha256-bFDxbpkTZ6nIUT2zMxKMgV94vWlVNzBbIbhx4Bpr8gw=";
})
];

outputs = [
"out"
"man"
Expand All @@ -63,17 +54,16 @@ stdenv.mkDerivation rec {
libtorrent
ncurses
openssl
xmlrpc_c
zlib
];

configureFlags = [
"--with-xmlrpc-c"
"--with-xmlrpc-tinyxml2"
"--with-posix-fallocate"
];

passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
updateScript = unstableGitUpdater { rev-prefix = "v"; };
tests = {
inherit (nixosTests) rtorrent;
};
Expand Down

0 comments on commit 7c4b748

Please sign in to comment.