@@ -0,0 +1,27 @@
1+{ lib, rustPlatform, fetchFromGitHub, pkgconfig, openssl }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "bitwarden_rs";
5+ version = "1.8.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "dani-garcia";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "0jz9r6ck6sfz4ig95x0ja6g5ikyq6z0xw1zn9zf4kxha4klqqbkx";
12+ };
13+
14+ buildInputs = [ pkgconfig openssl ];
15+
16+ RUSTC_BOOTSTRAP = 1;
17+
18+ cargoSha256 = "0bzid5wrpcrghazv5652ghyv4amp298p5kfridswv175kmr9gg0x";
19+
20+ meta = with lib; {
21+ description = "An unofficial lightweight implementation of the Bitwarden server API using Rust and SQLite";
22+ homepage = https://github.com/dani-garcia/bitwarden_rs;
23+ license = licenses.gpl3;
24+ maintainers = with maintainers; [ msteen ];
25+ platforms = platforms.all;
26+ };
27+}