Merge pull request #67589 from Ma27/libglade-without-python2

gnome2.libglade: make python2 build optional
This commit is contained in:
worldofpeace 2019-08-27 19:53:01 -04:00 committed by GitHub
commit 2b17b32641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,6 @@
{stdenv, fetchurl, pkgconfig, gtk2, libxml2, python, gettext}:
{ stdenv, fetchurl, pkgconfig, gtk2, libxml2, python2 ? null, withLibgladeConvert ? false, gettext }:
assert withLibgladeConvert -> python2 != null;
stdenv.mkDerivation {
name = "libglade-2.6.4";
@ -11,7 +13,8 @@ stdenv.mkDerivation {
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk2 python gettext ];
buildInputs = [ gtk2 gettext ]
++ stdenv.lib.optional withLibgladeConvert python2;
NIX_LDFLAGS = "-lgmodule-2.0";