3
0
Fork 0
forked from mirrors/nixpkgs

transmission: fix build with systemd 230

This commit is contained in:
obadz 2016-05-28 13:23:47 +01:00
parent 9f6fc25734
commit 70286f1348

View file

@ -21,8 +21,10 @@ stdenv.mkDerivation rec {
++ optionals enableGTK3 [ gtk3 makeWrapper ]
++ optional stdenv.isLinux systemd;
preConfigure = ''
sed -i -e 's|/usr/bin/file|${file}/bin/file|g' configure
postPatch = ''
substituteInPlace ./configure \
--replace "libsystemd-daemon" "libsystemd" \
--replace "/usr/bin/file" "${file}/bin/file"
'';
configureFlags = [ "--with-systemd-daemon" ]