f9c070a07e
Diff: https://github.com/bitwarden/clients/compare/cli-v2024.2.1...cli-v2024.3.1 Changelog: https://github.com/bitwarden/clients/releases/tag/cli-v2024.3.1
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildNpmPackage
|
|
, nodejs_18
|
|
, fetchFromGitHub
|
|
, python3
|
|
, darwin
|
|
, nixosTests
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "bitwarden-cli";
|
|
version = "2024.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bitwarden";
|
|
repo = "clients";
|
|
rev = "cli-v${version}";
|
|
hash = "sha256-JBEP4dNGL4rYKl2qNyhB2y/wZunikaGFltGVXLxgMWI=";
|
|
};
|
|
|
|
nodejs = nodejs_18;
|
|
|
|
npmDepsHash = "sha256-vNudSHIMmF7oXGz+ZymQahyHebs/CBDc6Oy1g0A5nqA=";
|
|
|
|
nativeBuildInputs = [
|
|
python3
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.cctools
|
|
];
|
|
|
|
makeCacheWritable = true;
|
|
|
|
env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
|
|
|
|
npmBuildScript = "build:prod";
|
|
|
|
npmWorkspace = "apps/cli";
|
|
|
|
npmFlags = [ "--legacy-peer-deps" ];
|
|
|
|
passthru.tests = {
|
|
vaultwarden = nixosTests.vaultwarden.sqlite;
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/bitwarden/clients/releases/tag/${src.rev}";
|
|
description = "A secure and free password manager for all of your devices";
|
|
homepage = "https://bitwarden.com";
|
|
license = lib.licenses.gpl3Only;
|
|
mainProgram = "bw";
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|