18 , gobject-introspection
25 , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd
28 stdenv.mkDerivation rec {
32 outputs = [ "out" "bin" "dev" "devdoc" ];
35 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
36 hash = "sha256-w+6HKOQ2SwOX9DX6IPkvkBqxOdKyZPTgWdZ7PA9DzTY=";
61 ] ++ lib.optionals systemdSupport [
65 propagatedBuildInputs = [
75 # We are still using ssh-agent from gnome-keyring.
76 # https://github.com/NixOS/nixpkgs/issues/140824
78 "-Dgpg_path=${lib.getBin gnupg}/bin/gpg"
79 (lib.mesonEnable "systemd" systemdSupport)
82 doCheck = false; # fails 21 out of 603 tests, needs dbus daemon
84 PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR = "${placeholder "out"}/lib/systemd/user";
87 patchShebangs gcr/fixtures/
91 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
92 moveToOutput "share/doc" "$devdoc"
96 updateScript = gnome.updateScript {
103 platforms = platforms.unix;
104 maintainers = teams.gnome.members;
105 description = "GNOME crypto services (daemon and tools)";
106 mainProgram = "gcr-viewer-gtk4";
107 homepage = "https://gitlab.gnome.org/GNOME/gcr";
108 license = licenses.lgpl2Plus;
111 GCR is a library for displaying certificates, and crypto UI, accessing
112 key stores. It also provides the viewer for crypto files on the GNOME
115 GCK is a library for accessing PKCS#11 modules like smart cards, in a
116 (G)object oriented way.