Commit 0cebbcb0 authored by Tobias Heinze's avatar Tobias Heinze
Browse files
parent 9b901d3a
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -13,13 +13,13 @@

buildNpmPackage rec {
  pname = "bitwarden-cli";
  version = "2024.12.0";
  version = "2025.1.2";

  src = fetchFromGitHub {
    owner = "bitwarden";
    repo = "clients";
    rev = "cli-v${version}";
    hash = "sha256-3aN2t8/qhN0sjACvtip45efHQJl8nEMNre0+oBL1/go=";
    hash = "sha256-Ibf25+aaEKFUCp5uiqmHySfdZq2JPAu2nBzfiS4Sc/k=";
  };

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

  nodejs = nodejs_20;

  npmDepsHash = "sha256-EtIcqbubAYN9I9wbw17oHiVshd3GtQayFtdgqWP7Pgg=";
  npmDepsHash = "sha256-+LpF5zxC4TG5tF+RNgimLyEmGYyUfFDXHqs2RH9oQLY=";

  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
    cctools
@@ -50,6 +50,14 @@ buildNpmPackage rec {

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

  # FIXME temporarily disable the symlink check as there are symlink after the build in the `node_modules/@bitwarden` directory linking to `../../`.
  dontCheckForBrokenSymlinks = true;

  npmRebuildFlags = [
    # FIXME one of the esbuild versions fails to download @esbuild/linux-x64
    "--ignore-scripts"
  ];

  postConfigure = ''
    # we want to build everything from source
    shopt -s globstar