2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, glib, pkg-config, gettext, libxslt, python3
|
2020-01-26 22:44:16 +00:00
|
|
|
, docbook_xsl, docbook_xml_dtd_42 , libgcrypt, gobject-introspection, vala
|
2021-05-08 13:45:03 +00:00
|
|
|
, gtk-doc, gnome, gjs, libintl, dbus, xvfb-run }:
|
2018-08-08 18:53:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 05:24:48 +00:00
|
|
|
pname = "libsecret";
|
2020-11-18 21:36:40 +00:00
|
|
|
version = "0.20.4";
|
2013-06-21 17:59:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-11-18 21:36:40 +00:00
|
|
|
sha256 = "0a4xnfmraxchd9cq5ai66j12jv2vrgjmaaxz25kl031jvda4qnij";
|
2013-06-21 17:59:20 +00:00
|
|
|
};
|
|
|
|
|
2018-08-08 18:53:09 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2018-09-05 00:50:56 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2017-01-10 14:23:16 +00:00
|
|
|
|
2015-04-10 08:24:42 +00:00
|
|
|
propagatedBuildInputs = [ glib ];
|
2020-01-26 22:44:16 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config gettext libxslt docbook_xsl docbook_xml_dtd_42 libintl
|
2020-02-25 01:02:14 +00:00
|
|
|
gobject-introspection vala gtk-doc glib
|
2020-01-26 22:44:16 +00:00
|
|
|
];
|
2018-09-05 00:50:56 +00:00
|
|
|
buildInputs = [ libgcrypt ];
|
2015-04-10 08:24:42 +00:00
|
|
|
# optional: build docs with gtk-doc? (probably needs a flag as well)
|
2013-06-21 17:59:20 +00:00
|
|
|
|
2019-04-06 13:05:44 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-libgcrypt-prefix=${libgcrypt.dev}"
|
|
|
|
];
|
|
|
|
|
2018-09-05 00:50:56 +00:00
|
|
|
enableParallelBuilding = true;
|
2018-08-08 18:53:09 +00:00
|
|
|
|
2020-01-26 22:44:16 +00:00
|
|
|
installCheckInputs = [
|
2021-05-08 13:45:03 +00:00
|
|
|
python3 python3.pkgs.dbus-python python3.pkgs.pygobject3 xvfb-run dbus gjs
|
2020-01-26 22:44:16 +00:00
|
|
|
];
|
2018-09-05 00:50:56 +00: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 18:53:09 +00:00
|
|
|
|
2018-03-03 05:24:48 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 05:24:48 +00:00
|
|
|
packageName = pname;
|
2019-10-07 06:02:36 +00: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 17:59:20 +00:00
|
|
|
meta = {
|
2015-04-10 08:24:42 +00:00
|
|
|
description = "A library for storing and retrieving passwords and other secrets";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Libsecret";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
2013-06-21 17:59:20 +00:00
|
|
|
inherit (glib.meta) platforms maintainers;
|
|
|
|
};
|
|
|
|
}
|