gnome-keyring: Add arg to build without wrapper

Some derivations may want to use gnome-keyring during their build, e.g.
for tests, but the wrapper for gnome-keyring-daemon not does not inside
the sandbox, so add an option to build without it. This will, at
least, be used in the upcoming bitwarden source-based build.
This commit is contained in:
Andrew Marshall 2023-02-23 23:13:46 -05:00
parent c992e25a7d
commit c84e76ec70

View file

@ -19,6 +19,7 @@
, docbook-xsl-nons
, docbook_xml_dtd_43
, gnome
, useWrappedDaemon ? true
}:
stdenv.mkDerivation rec {
@ -78,7 +79,7 @@ stdenv.mkDerivation rec {
'';
# Use wrapped gnome-keyring-daemon with cap_ipc_lock=ep
postFixup = ''
postFixup = lib.optionalString useWrappedDaemon ''
files=($out/etc/xdg/autostart/* $out/share/dbus-1/services/*)
for file in ''${files[*]}; do