treewide: Make more complicated configureFlags lists

This commit is contained in:
John Ericson
2018-08-03 17:06:03 -04:00
parent 632d24f11f
commit 85a9913edd
27 changed files with 193 additions and 190 deletions
@@ -32,9 +32,9 @@ in stdenv.mkDerivation rec {
buildInputs = [ intltool glib gtk ncurses ] ++
stdenv.lib.optionals pythonSupport [python pygtk];
configureFlags = ''
${if pythonSupport then "--enable-python" else "--disable-python"}
'';
configureFlags = [
(stdenv.lib.enableFeature pythonSupport "python")
];
postInstall = stdenv.lib.optionalString pythonSupport ''
cd $(toPythonPath $out)/gtk-2.0