Merge pull request #170242 from armeenm/libglade-remove-python2

gnome2.libglade: remove python2-dependent functionality
This commit is contained in:
Bobby Rong
2022-05-02 18:32:02 +08:00
committed by GitHub
@@ -1,6 +1,4 @@
{ lib, stdenv, fetchurl, pkg-config, gtk2, libxml2, python2 ? null, withLibgladeConvert ? false, gettext }:
assert withLibgladeConvert -> python2 != null;
{ lib, stdenv, fetchurl, pkg-config, gtk2, libxml2, gettext }:
stdenv.mkDerivation rec {
pname = "libglade";
@@ -14,8 +12,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 gettext ]
++ lib.optional withLibgladeConvert python2;
buildInputs = [ gtk2 gettext ];
NIX_LDFLAGS = "-lgmodule-2.0";