Skip to content

Commit

Permalink
transmission: 2.92 -> 2.93
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Feb 26, 2018
1 parent 4925a5a commit a2a922d
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions pkgs/applications/networking/p2p/transmission/default.nix
Expand Up @@ -6,18 +6,15 @@
, enableCli ? true
}:

let
version = "2.92";
in

let inherit (stdenv.lib) optional optionals optionalString; in

stdenv.mkDerivation rec {
name = "transmission-" + optionalString enableGTK3 "gtk-" + version;
version = "2.93";

src = fetchurl {
url = "https://transmission.cachefly.net/transmission-${version}.tar.xz";
sha256 = "0pykmhi7pdmzq47glbj8i2im6iarp4wnj4l1pyvsrnba61f0939s";
url = "https://github.com/transmission/transmission-releases/raw/master/transmission-2.93.tar.xz";
sha256 = "8815920e0a4499bcdadbbe89a4115092dab42ce5199f71ff9a926cfd12b9b90b";
};

nativeBuildInputs = [ pkgconfig ]
Expand All @@ -27,16 +24,6 @@ stdenv.mkDerivation rec {
++ optionals enableSystemd [ systemd ]
++ optionals stdenv.isLinux [ inotify-tools ];

patches = [
(fetchpatch {
# See https://github.com/transmission/transmission/pull/468
# Patch from: https://github.com/transmission/transmission/pull/468#issuecomment-357098126
name = "transmission-fix-dns-rebinding-vuln.patch";
url = https://github.com/transmission/transmission/files/1624507/transmission-fix-dns-rebinding-vuln.patch.txt;
sha256 = "1p9m20kp4kdyp5jjr3yp5px627n8cfa29mg5n3wzsdfv0qzk9gy4";
})
];

postPatch = ''
substituteInPlace ./configure \
--replace "libsystemd-daemon" "libsystemd" \
Expand Down

0 comments on commit a2a922d

Please sign in to comment.