Skip to content

Commit d62d5be

Browse files
bitwarden-cli: 2025.1.2 -> 2025.1.3 (#381564)
2 parents 1c40714 + 7502af5 commit d62d5be

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

pkgs/by-name/bi/bitwarden-cli/package.nix

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
buildNpmPackage rec {
1515
pname = "bitwarden-cli";
16-
version = "2025.1.2";
16+
version = "2025.1.3";
1717

1818
src = fetchFromGitHub {
1919
owner = "bitwarden";
2020
repo = "clients";
2121
rev = "cli-v${version}";
22-
hash = "sha256-Ibf25+aaEKFUCp5uiqmHySfdZq2JPAu2nBzfiS4Sc/k=";
22+
hash = "sha256-a8OQ/vQCJSjipLnuNWaWqnAJK+Str6FdHPBTbC04VxA=";
2323
};
2424

2525
postPatch = ''
@@ -29,7 +29,7 @@ buildNpmPackage rec {
2929

3030
nodejs = nodejs_20;
3131

32-
npmDepsHash = "sha256-+LpF5zxC4TG5tF+RNgimLyEmGYyUfFDXHqs2RH9oQLY=";
32+
npmDepsHash = "sha256-BoHwgv/1QiIfUPCJ3+ZHvbMelngRSEKlbkpBHRtnoP8=";
3333

3434
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
3535
cctools
@@ -50,9 +50,6 @@ buildNpmPackage rec {
5050

5151
npmFlags = [ "--legacy-peer-deps" ];
5252

53-
# FIXME temporarily disable the symlink check as there are symlink after the build in the `node_modules/@bitwarden` directory linking to `../../`.
54-
dontCheckForBrokenSymlinks = true;
55-
5653
npmRebuildFlags = [
5754
# FIXME one of the esbuild versions fails to download @esbuild/linux-x64
5855
"--ignore-scripts"
@@ -72,6 +69,13 @@ buildNpmPackage rec {
7269
shopt -u globstar
7370
'';
7471

72+
postInstall = ''
73+
# The @bitwarden modules are actually npm workspaces inside the source tree, which
74+
# leave dangling symlinks behind. They can be safely removed, because their source is
75+
# bundled via webpack and thus not needed at run-time.
76+
rm -rf $out/lib/node_modules/@bitwarden/clients/node_modules/{@bitwarden,.bin}
77+
'';
78+
7579
passthru = {
7680
tests = {
7781
vaultwarden = nixosTests.vaultwarden.sqlite;

0 commit comments

Comments
 (0)