transmission: nicer about disabling gtk
This commit is contained in:
parent
51528e61d9
commit
470a015950
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user