mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 13:24:29 +00:00
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:
parent
c992e25a7d
commit
c84e76ec70
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user