transmission: Fix compilation due to missing systemd dependency

This commit is contained in:
Ricardo M. Correia 2014-05-22 11:34:47 +02:00
parent 1ab0cd1242
commit f9daf50214

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, intltool, file, makeWrapper { stdenv, fetchurl, pkgconfig, intltool, file, makeWrapper
, openssl, curl, libevent, inotifyTools , openssl, curl, libevent, inotifyTools, systemd
, enableGTK3 ? false, gtk3 , enableGTK3 ? false, gtk3
}: }:
@ -18,7 +18,8 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ pkgconfig intltool file openssl curl libevent inotifyTools ] buildInputs = [ pkgconfig intltool file openssl curl libevent inotifyTools ]
++ optionals enableGTK3 [ gtk3 makeWrapper ]; ++ optionals enableGTK3 [ gtk3 makeWrapper ]
++ optional stdenv.isLinux systemd;
preConfigure = '' preConfigure = ''
sed -i -e 's|/usr/bin/file|${file}/bin/file|g' configure sed -i -e 's|/usr/bin/file|${file}/bin/file|g' configure