2019-04-23 20:25:46 +01:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, pkgconfig, openssl }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "bitwarden_rs";
|
2019-05-12 10:26:11 +01:00
|
|
|
version = "1.9.0";
|
2019-04-23 20:25:46 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dani-garcia";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-05-12 10:26:11 +01:00
|
|
|
sha256 = "14c2blzkmdd9s0gpf6b7y141yx9s2v2gmwy5l1lgqjhi3h6jpcqr";
|
2019-04-23 20:25:46 +01:00
|
|
|
};
|
|
|
|
|
2019-05-12 10:26:11 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ openssl ];
|
2019-04-23 20:25:46 +01:00
|
|
|
|
|
|
|
RUSTC_BOOTSTRAP = 1;
|
|
|
|
|
2019-05-12 10:26:11 +01:00
|
|
|
cargoSha256 = "038l6alcdc0g4avpbzxgd2k09nr3wrsbry763bq2c77qqgwldj8r";
|
2019-04-23 20:25:46 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An unofficial lightweight implementation of the Bitwarden server API using Rust and SQLite";
|
|
|
|
homepage = https://github.com/dani-garcia/bitwarden_rs;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ msteen ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|