From 70286f13483aac4f3d25cca2692c16e13eecb464 Mon Sep 17 00:00:00 2001 From: obadz Date: Sat, 28 May 2016 13:23:47 +0100 Subject: [PATCH] transmission: fix build with systemd 230 --- pkgs/applications/networking/p2p/transmission/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/p2p/transmission/default.nix b/pkgs/applications/networking/p2p/transmission/default.nix index 24b7a50b032f..b85970df4b4a 100644 --- a/pkgs/applications/networking/p2p/transmission/default.nix +++ b/pkgs/applications/networking/p2p/transmission/default.nix @@ -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" ]