nixpkgs/pkgs/tools/security/bitwarden_rs/default.nix

29 lines
882 B
Nix
Raw Normal View History

2019-05-12 14:54:30 +00:00
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, Security, CoreServices }:
2019-04-23 19:25:46 +00:00
rustPlatform.buildRustPackage rec {
pname = "bitwarden_rs";
version = "1.9.0";
2019-04-23 19:25:46 +00:00
src = fetchFromGitHub {
owner = "dani-garcia";
repo = pname;
rev = version;
sha256 = "14c2blzkmdd9s0gpf6b7y141yx9s2v2gmwy5l1lgqjhi3h6jpcqr";
2019-04-23 19:25:46 +00:00
};
nativeBuildInputs = [ pkgconfig ];
2019-05-12 14:54:30 +00:00
buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [ Security CoreServices ];
2019-04-23 19:25:46 +00:00
RUSTC_BOOTSTRAP = 1;
cargoSha256 = "038l6alcdc0g4avpbzxgd2k09nr3wrsbry763bq2c77qqgwldj8r";
2019-04-23 19:25:46 +00:00
2019-05-12 14:54:30 +00:00
meta = with stdenv.lib; {
2019-04-23 19:25:46 +00:00
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;
};
}