transmission: nicer about disabling gtk

This commit is contained in:
Lluís Batlle i Rossell 2013-03-17 22:30:42 +01:00
parent 51528e61d9
commit 470a015950

View File

@ -13,13 +13,14 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ pkgconfig openssl curl intltool libevent buildInputs = [ pkgconfig openssl curl intltool libevent
file inotifyTools gtk ]; file inotifyTools ]
++ stdenv.lib.optional enableGtk gtk;
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
''; '';
configureFlags = stdenv.lib.optional enableGtk "--with-gtk"; configureFlags = stdenv.lib.optionalString enableGtk "--with-gtk";
postInstall = '' postInstall = ''
rm -f $out/share/icons/hicolor/icon-theme.cache rm -f $out/share/icons/hicolor/icon-theme.cache