gobjectIntrospection: Enable building without X11 support.
Also disable it when noXlibs in NixOS.
This commit is contained in:
parent
f66da15715
commit
c54730dde8
@ -36,6 +36,7 @@ with lib;
|
|||||||
networkmanager-vpnc = pkgs.networkmanager-vpnc.override { withGnome = false; };
|
networkmanager-vpnc = pkgs.networkmanager-vpnc.override { withGnome = false; };
|
||||||
networkmanager-iodine = pkgs.networkmanager-iodine.override { withGnome = false; };
|
networkmanager-iodine = pkgs.networkmanager-iodine.override { withGnome = false; };
|
||||||
pinentry = pkgs.pinentry_ncurses;
|
pinentry = pkgs.pinentry_ncurses;
|
||||||
|
gobjectIntrospection = pkgs.gobjectIntrospection.override { x11Support = false; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl, glib, flex, bison, pkgconfig, libffi, python
|
{ stdenv, fetchurl, glib, flex, bison, pkgconfig, libffi, python
|
||||||
, libintlOrEmpty, cctools, cairo
|
, libintlOrEmpty, cctools, cairo
|
||||||
, substituteAll, nixStoreDir ? builtins.storeDir
|
, substituteAll, nixStoreDir ? builtins.storeDir
|
||||||
|
, x11Support ? true
|
||||||
}:
|
}:
|
||||||
# now that gobjectIntrospection creates large .gir files (eg gtk3 case)
|
# now that gobjectIntrospection creates large .gir files (eg gtk3 case)
|
||||||
# it may be worth thinking about using multiple derivation outputs
|
# it may be worth thinking about using multiple derivation outputs
|
||||||
@ -43,12 +44,11 @@ stdenv.mkDerivation rec {
|
|||||||
src = ./absolute_shlib_path.patch;
|
src = ./absolute_shlib_path.patch;
|
||||||
inherit nixStoreDir;
|
inherit nixStoreDir;
|
||||||
})
|
})
|
||||||
# https://github.com/NixOS/nixpkgs/issues/34080
|
] ++ stdenv.lib.optional x11Support # https://github.com/NixOS/nixpkgs/issues/34080
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./absolute_gir_path.patch;
|
src = ./absolute_gir_path.patch;
|
||||||
cairoLib = "${getLib cairo}/lib";
|
cairoLib = "${getLib cairo}/lib";
|
||||||
})
|
});
|
||||||
];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A middleware layer between C libraries and language bindings";
|
description = "A middleware layer between C libraries and language bindings";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user