2019-01-03 12:06:41 +00:00
|
|
|
{ stdenv, fetchurl, glib, pkgconfig, gettext, libxslt, python3, docbook_xsl, docbook_xml_dtd_42
|
2019-11-04 23:38:42 +00:00
|
|
|
, libgcrypt, gobject-introspection, vala, gtk-doc, gnome3, gjs, libintl, dbus, xvfb_run }:
|
2018-08-08 19:53:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 05:24:48 +00:00
|
|
|
pname = "libsecret";
|
2019-09-15 21:00:03 +01:00
|
|
|
version = "0.19.1";
|
2013-06-21 18:59:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-01-03 12:06:41 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-15 21:00:03 +01:00
|
|
|
sha256 = "0fhflcsr70b1pps2pcvqcbdhip2ny5am9nbm634f4sj5g40y30w5";
|
2013-06-21 18:59:20 +01:00
|
|
|
};
|
|
|
|
|
2018-08-08 19:53:09 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2018-09-05 01:50:56 +01:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2017-01-10 14:23:16 +00:00
|
|
|
|
2015-04-10 09:24:42 +01:00
|
|
|
propagatedBuildInputs = [ glib ];
|
2019-01-03 12:06:41 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext libxslt docbook_xsl docbook_xml_dtd_42 libintl gobject-introspection vala gtk-doc ];
|
2018-09-05 01:50:56 +01:00
|
|
|
buildInputs = [ libgcrypt ];
|
2015-04-10 09:24:42 +01:00
|
|
|
# optional: build docs with gtk-doc? (probably needs a flag as well)
|
2013-06-21 18:59:20 +01:00
|
|
|
|
2019-04-06 14:05:44 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-libgcrypt-prefix=${libgcrypt.dev}"
|
|
|
|
];
|
|
|
|
|
2018-09-05 01:50:56 +01:00
|
|
|
enableParallelBuilding = true;
|
2018-08-08 19:53:09 +01:00
|
|
|
|
2019-11-04 23:38:42 +00:00
|
|
|
installCheckInputs = [ python3 python3.pkgs.dbus-python python3.pkgs.pygobject3 xvfb_run dbus gjs ];
|
2018-09-05 01:50:56 +01:00
|
|
|
|
|
|
|
# needs to run after install because typelibs point to absolute paths
|
|
|
|
doInstallCheck = false; # Failed to load shared library '/force/shared/libmock_service.so.0' referenced by the typelib
|
|
|
|
installCheckPhase = ''
|
|
|
|
export NO_AT_BRIDGE=1
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
make check
|
|
|
|
'';
|
2018-08-08 19:53:09 +01:00
|
|
|
|
2018-03-03 05:24:48 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
2019-10-07 07:02:36 +01:00
|
|
|
# Does not seem to use the odd-unstable policy: https://gitlab.gnome.org/GNOME/libsecret/issues/30
|
|
|
|
versionPolicy = "none";
|
2018-03-03 05:24:48 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-06-21 18:59:20 +01:00
|
|
|
meta = {
|
2015-04-10 09:24:42 +01:00
|
|
|
description = "A library for storing and retrieving passwords and other secrets";
|
|
|
|
homepage = https://wiki.gnome.org/Projects/Libsecret;
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2013-06-21 18:59:20 +01:00
|
|
|
inherit (glib.meta) platforms maintainers;
|
|
|
|
};
|
|
|
|
}
|