mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 17:44:44 +00:00
Merge pull request #67589 from Ma27/libglade-without-python2
gnome2.libglade: make python2 build optional
This commit is contained in:
commit
2b17b32641
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user