18 , gobject-introspection
27 stdenv.mkDerivation rec {
31 outputs = [ "out" "dev" "devdoc" ];
34 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
35 sha256 = "u3Eoo8L+u/7pwDuQ131JjQzrI3sHiYAtYBhcccS+ok8=";
59 ] ++ lib.optionals stdenv.isLinux [
63 propagatedBuildInputs = [
74 # We are still using ssh-agent from gnome-keyring.
75 # https://github.com/NixOS/nixpkgs/issues/140824
77 ] ++ lib.optionals (!stdenv.isLinux) [
81 doCheck = false; # fails 21 out of 603 tests, needs dbus daemon
83 PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR = "${placeholder "out"}/lib/systemd/user";
86 patchShebangs gcr/fixtures/
88 chmod +x meson_post_install.py
89 patchShebangs meson_post_install.py
90 substituteInPlace meson_post_install.py --replace ".so" "${stdenv.hostPlatform.extensions.sharedLibrary}"
94 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
95 moveToOutput "share/doc" "$devdoc"
99 updateScript = gnome.updateScript {
106 platforms = platforms.unix;
107 maintainers = teams.gnome.members;
108 description = "GNOME crypto services (daemon and tools)";
109 homepage = "https://gitlab.gnome.org/GNOME/gcr";
110 license = licenses.lgpl2Plus;
113 GCR is a library for displaying certificates, and crypto UI, accessing
114 key stores. It also provides the viewer for crypto files on the GNOME
117 GCK is a library for accessing PKCS#11 modules like smart cards, in a
118 (G)object oriented way.