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