transmission: 2.92 -> 2.93
This commit is contained in:
parent
4925a5a40c
commit
a2a922d5c8
@ -6,18 +6,15 @@
|
|||||||
, enableCli ? true
|
, enableCli ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
version = "2.92";
|
|
||||||
in
|
|
||||||
|
|
||||||
let inherit (stdenv.lib) optional optionals optionalString; in
|
let inherit (stdenv.lib) optional optionals optionalString; in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "transmission-" + optionalString enableGTK3 "gtk-" + version;
|
name = "transmission-" + optionalString enableGTK3 "gtk-" + version;
|
||||||
|
version = "2.93";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://transmission.cachefly.net/transmission-${version}.tar.xz";
|
url = "https://github.com/transmission/transmission-releases/raw/master/transmission-2.93.tar.xz";
|
||||||
sha256 = "0pykmhi7pdmzq47glbj8i2im6iarp4wnj4l1pyvsrnba61f0939s";
|
sha256 = "8815920e0a4499bcdadbbe89a4115092dab42ce5199f71ff9a926cfd12b9b90b";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ]
|
nativeBuildInputs = [ pkgconfig ]
|
||||||
@ -27,16 +24,6 @@ stdenv.mkDerivation rec {
|
|||||||
++ optionals enableSystemd [ systemd ]
|
++ optionals enableSystemd [ systemd ]
|
||||||
++ optionals stdenv.isLinux [ inotify-tools ];
|
++ 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 = ''
|
postPatch = ''
|
||||||
substituteInPlace ./configure \
|
substituteInPlace ./configure \
|
||||||
--replace "libsystemd-daemon" "libsystemd" \
|
--replace "libsystemd-daemon" "libsystemd" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user