anchor.diff:      sha256 = "0pykmhi7pdmzq47glbj8i2im6iarp4wnj4l1pyvsrnba61f0939s";
     };
   
  -  nativeBuildInputs = [ pkgconfig ];
  +  nativeBuildInputs = [ pkgconfig ]
  +    ++ optionals enableGTK3 [ wrapGAppsHook ];
     buildInputs = [ intltool file openssl curl libevent zlib ]
  -    ++ optionals enableGTK3 [ gtk3 makeWrapper ]
  +    ++ optionals enableGTK3 [ gtk3 ]
       ++ optionals enableSystemd [ systemd ]
       ++ optionals stdenv.isLinux [ inotify-tools ];
   
  
positive.code:     ++ optional enableSystemd "--with-systemd-daemon"
      ++ optional enableGTK3 "--with-gtk";
  
    preFixup = optionalString enableGTK3 /* gsettings schemas for file dialogues */ ''
      rm "$out/share/icons/hicolor/icon-theme.cache"
      wrapProgram "$out/bin/transmission-gtk" \
        --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
    '';
  
    NIX_LDFLAGS = optionalString stdenv.isDarwin "-framework CoreFoundation";
  
negative.code: { stdenv, fetchurl, pkgconfig, intltool, file, wrapGAppsHook
  , openssl, curl, libevent, inotify-tools, systemd, zlib
  , enableGTK3 ? false, gtk3
  , enableSystemd ? stdenv.isLinux
  