bitwarden-desktop: remove unneeded dbus-run-session for tests

This appears to no longer be needed. Still run in a subshell to avoid
polluting `HOME` to the rest of the build.
This commit is contained in:
Andrew Marshall
2024-10-15 15:20:44 -04:00
parent bf63690b2e
commit d9ce15a363
+3 -10
View File
@@ -2,7 +2,6 @@
, buildNpmPackage
, cargo
, copyDesktopItems
, dbus
, electron_32
, fetchFromGitHub
, glib
@@ -135,7 +134,6 @@ in buildNpmPackage rec {
doCheck = true;
nativeCheckInputs = [
dbus
(gnome-keyring.override { useWrappedDaemon = false; })
];
@@ -148,14 +146,9 @@ in buildNpmPackage rec {
(
cd ${cargoRoot}
export HOME=$(mktemp -d)
export cargoCheckType=release
for function in $(declare -F | awk '{print $3}'); do
export -f "$function"
done
dbus-run-session \
--config-file=${dbus}/share/dbus-1/session.conf \
-- bash -e -c cargoCheckHook
HOME=$(mktemp -d)
cargoCheckType=release
cargoCheckHook
)
runHook postCheck