forked from mirrors/nixpkgs
transmission: fix build with systemd 230
This commit is contained in:
parent
9f6fc25734
commit
70286f1348
|
@ -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" ]
|
||||||
|
|
Loading…
Reference in a new issue