-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
/
default.nix
63 lines (51 loc) · 1.78 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{ stdenv, fetchurl, pkgconfig, dbus, libgcrypt, pam, python2, glib, libxslt
, gettext, gcr, libcap_ng, libselinux, p11-kit, openssh, wrapGAppsHook
, docbook_xsl, docbook_xml_dtd_43, gnome3 }:
stdenv.mkDerivation rec {
name = "gnome-keyring-${version}";
version = "3.28.2";
src = fetchurl {
url = "mirror://gnome/sources/gnome-keyring/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0sk4las4ji8wv9nx8mldzqccmpmkvvr9pdwv9imj26r10xyin5w1";
};
outputs = [ "out" "dev" ];
buildInputs = [
glib libgcrypt pam openssh libcap_ng libselinux
gcr p11-kit
];
nativeBuildInputs = [
pkgconfig gettext libxslt docbook_xsl docbook_xml_dtd_43 wrapGAppsHook
];
configureFlags = [
"--with-pkcs11-config=${placeholder ''out''}/etc/pkcs11/" # installation directories
"--with-pkcs11-modules=${placeholder ''out''}/lib/pkcs11/"
];
postPatch = ''
patchShebangs build
'';
# Tends to fail non-deterministically.
# - https://github.com/NixOS/nixpkgs/issues/55293
# - https://github.com/NixOS/nixpkgs/issues/51121
doCheck = false;
# In 3.20.1, tests do not support Python 3
checkInputs = [ dbus python2 ];
checkPhase = ''
export HOME=$(mktemp -d)
dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
make check
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = "gnome-keyring";
attrPath = "gnome3.gnome-keyring";
};
};
meta = with stdenv.lib; {
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;
maintainers = gnome3.maintainers;
platforms = platforms.linux;
};
}