1
- { stdenv , fetchurl , pkgconfig , intltool , file , makeWrapper
1
+ { stdenv , fetchurl , pkgconfig , intltool , file , wrapGAppsHook
2
2
, openssl , curl , libevent , inotify-tools , systemd , zlib
3
3
, enableGTK3 ? false , gtk3
4
4
, enableSystemd ? stdenv . isLinux
@@ -20,9 +20,10 @@ stdenv.mkDerivation rec {
20
20
sha256 = "0pykmhi7pdmzq47glbj8i2im6iarp4wnj4l1pyvsrnba61f0939s" ;
21
21
} ;
22
22
23
- nativeBuildInputs = [ pkgconfig ] ;
23
+ nativeBuildInputs = [ pkgconfig ]
24
+ ++ optionals enableGTK3 [ wrapGAppsHook ] ;
24
25
buildInputs = [ intltool file openssl curl libevent zlib ]
25
- ++ optionals enableGTK3 [ gtk3 makeWrapper ]
26
+ ++ optionals enableGTK3 [ gtk3 ]
26
27
++ optionals enableSystemd [ systemd ]
27
28
++ optionals stdenv . isLinux [ inotify-tools ] ;
28
29
@@ -41,10 +42,8 @@ stdenv.mkDerivation rec {
41
42
++ optional enableSystemd "--with-systemd-daemon"
42
43
++ optional enableGTK3 "--with-gtk" ;
43
44
44
- preFixup = optionalString enableGTK3 /* gsettings schemas for file dialogues */ ''
45
+ preFixup = optionalString enableGTK3 ''
45
46
rm "$out/share/icons/hicolor/icon-theme.cache"
46
- wrapProgram "$out/bin/transmission-gtk" \
47
- --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
48
47
'' ;
49
48
50
49
NIX_LDFLAGS = optionalString stdenv . isDarwin "-framework CoreFoundation" ;
0 commit comments