2017-12-18 18:42:32 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, dbus, libgcrypt, libtasn1, pam, python2, glib, libxslt
|
2018-02-25 02:23:58 +00:00
|
|
|
, intltool, pango, gcr, gdk_pixbuf, atk, p11-kit, wrapGAppsHook
|
2017-12-18 18:42:32 +00:00
|
|
|
, docbook_xsl, docbook_xml_dtd_42, gnome3 }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "gnome-keyring-${version}";
|
2018-03-13 01:03:18 +00:00
|
|
|
version = "3.28.0.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-keyring/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-13 01:03:18 +00:00
|
|
|
sha256 = "0qxxc3wx4abb07vmbhqy4gipdzilx3v8yba9hsfzpn8p15prjz6i";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "gnome-keyring"; attrPath = "gnome3.gnome-keyring"; };
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-09-27 10:25:50 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
buildInputs = with gnome3; [
|
2018-02-25 02:23:58 +00:00
|
|
|
dbus libgcrypt pam gtk3 libgnome-keyring
|
|
|
|
pango gcr gdk_pixbuf atk p11-kit
|
2016-09-18 20:35:23 +01:00
|
|
|
];
|
|
|
|
|
2017-12-18 18:42:32 +00:00
|
|
|
# In 3.20.1, tests do not support Python 3
|
|
|
|
checkInputs = [ dbus python2 ];
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
propagatedBuildInputs = [ glib libtasn1 libxslt ];
|
|
|
|
|
2017-12-18 18:42:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig intltool docbook_xsl docbook_xml_dtd_42 wrapGAppsHook
|
|
|
|
] ++ stdenv.lib.optionals doCheck checkInputs;
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-pkcs11-config=$$out/etc/pkcs11/" # installation directories
|
|
|
|
"--with-pkcs11-modules=$$out/lib/pkcs11/"
|
|
|
|
];
|
|
|
|
|
2017-12-18 18:42:32 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build
|
|
|
|
'';
|
|
|
|
|
2018-01-01 13:27:52 +00:00
|
|
|
# Tests are not deterministic https://bugzilla.gnome.org/show_bug.cgi?id=791932
|
|
|
|
doCheck = false;
|
2017-12-18 18:42:32 +00:00
|
|
|
checkPhase = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
make check
|
|
|
|
'';
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-12-18 18:42:32 +00:00
|
|
|
description = "Collection of components in GNOME that store secrets, passwords, keys, certificates and make them available to applications";
|
|
|
|
homepage = https://wiki.gnome.org/Projects/GnomeKeyring;
|
|
|
|
license = licenses.gpl2;
|
2016-09-18 20:35:23 +01:00
|
|
|
maintainers = gnome3.maintainers;
|
2017-12-18 18:42:32 +00:00
|
|
|
platforms = platforms.linux;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|