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 ] ++ optionals enableGTK3 [ gtk3 makeWrapper ]
++ optional stdenv.isLinux systemd; ++ optional stdenv.isLinux systemd;
preConfigure = '' postPatch = ''
sed -i -e 's|/usr/bin/file|${file}/bin/file|g' configure substituteInPlace ./configure \
--replace "libsystemd-daemon" "libsystemd" \
--replace "/usr/bin/file" "${file}/bin/file"
''; '';
configureFlags = [ "--with-systemd-daemon" ] configureFlags = [ "--with-systemd-daemon" ]