transmission: add enableSystemd flag

This flag can be used to enable systemd daemon support in transmission.
wip/yesman
Matthew Bauer 8 years ago
parent 826d6aa6cd
commit cae067f17a
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3
  1. 9
      pkgs/applications/networking/p2p/transmission/default.nix

@ -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…
Cancel
Save