Unverified Commit 0c1085e9 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

bitwarden-desktop: fix build (#348862)

parents fb2d8978 d9ce15a3
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
@@ -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; })
  ];

@@ -146,14 +144,12 @@ in buildNpmPackage rec {
  checkPhase = ''
    runHook preCheck

    pushd ${cargoRoot}
    export HOME=$(mktemp -d)
    export -f cargoCheckHook runHook _eval _callImplicitHook _logHook
    export cargoCheckType=release
    dbus-run-session \
      --config-file=${dbus}/share/dbus-1/session.conf \
      -- bash -e -c cargoCheckHook
    popd
    (
      cd ${cargoRoot}
      HOME=$(mktemp -d)
      cargoCheckType=release
      cargoCheckHook
    )

    runHook postCheck
  '';