transmission: add enableSystemd flag
This flag can be used to enable systemd daemon support in transmission.
This commit is contained in:
parent
826d6aa6cd
commit
cae067f17a
1 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
{ stdenv, fetchurl, pkgconfig, intltool, file, makeWrapper
|
||||
, openssl, curl, libevent, inotify-tools, systemd, zlib
|
||||
, enableGTK3 ? false, gtk3
|
||||
, enableSystemd ? stdenv.isLinux
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -19,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ pkgconfig intltool file openssl curl libevent inotify-tools zlib ]
|
||||
++ optionals enableGTK3 [ gtk3 makeWrapper ]
|
||||
++ optional stdenv.isLinux systemd;
|
||||
++ optionals enableSystemd [ systemd ]
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ./configure \
|
||||
|
@ -27,8 +28,10 @@ stdenv.mkDerivation rec {
|
|||
--replace "/usr/bin/file" "${file}/bin/file"
|
||||
'';
|
||||
|
||||
configureFlags = [ "--with-systemd-daemon" ]
|
||||
++ [ "--enable-cli" ]
|
||||
configureFlags = [
|
||||
"--enable-cli"
|
||||
]
|
||||
++ optional enableSystemd "--with-systemd-daemon"
|
||||
++ optional enableGTK3 "--with-gtk";
|
||||
|
||||
preFixup = optionalString enableGTK3 /* gsettings schemas for file dialogues */ ''
|
||||
|
|
Loading…
Reference in a new issue