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
commit 71285d11fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,4 @@
{ lib, stdenv, fetchurl, pkg-config, gtk2, libxml2, python2 ? null, withLibgladeConvert ? false, gettext }: { lib, stdenv, fetchurl, pkg-config, gtk2, libxml2, gettext }:
assert withLibgladeConvert -> python2 != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libglade"; pname = "libglade";
@ -14,8 +12,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 gettext ] buildInputs = [ gtk2 gettext ];
++ lib.optional withLibgladeConvert python2;
NIX_LDFLAGS = "-lgmodule-2.0"; NIX_LDFLAGS = "-lgmodule-2.0";