libsecret: disable introspection if no emulator
This commit is contained in:
parent
e1bd8afb07
commit
5ecef164cb
@ -12,6 +12,8 @@
|
||||
, docbook_xml_dtd_42
|
||||
, libgcrypt
|
||||
, gobject-introspection
|
||||
, buildPackages
|
||||
, withIntrospection ? stdenv.hostPlatform.emulatorAvailable buildPackages
|
||||
, vala
|
||||
, gi-docgen
|
||||
, gnome
|
||||
@ -24,7 +26,7 @@ stdenv.mkDerivation rec {
|
||||
pname = "libsecret";
|
||||
version = "0.20.5";
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" ];
|
||||
outputs = [ "out" "dev" ] ++ lib.optional withIntrospection "devdoc";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
@ -44,10 +46,11 @@ stdenv.mkDerivation rec {
|
||||
docbook-xsl-nons
|
||||
docbook_xml_dtd_42
|
||||
libintl
|
||||
gobject-introspection
|
||||
vala
|
||||
gi-docgen
|
||||
glib
|
||||
] ++ lib.optionals withIntrospection [
|
||||
gi-docgen
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@ -66,7 +69,12 @@ stdenv.mkDerivation rec {
|
||||
gjs
|
||||
];
|
||||
|
||||
doCheck = stdenv.isLinux;
|
||||
mesonFlags = [
|
||||
(lib.mesonBool "introspection" withIntrospection)
|
||||
(lib.mesonBool "gtk_doc" withIntrospection)
|
||||
];
|
||||
|
||||
doCheck = stdenv.isLinux && withIntrospection;
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ./tool/test-*.sh
|
||||
|
Loading…
Reference in New Issue
Block a user