bitwarden_rs: init at 1.8.0
This commit is contained in:
parent
ce14f9a9be
commit
8a0a9710b0
3 changed files with 56 additions and 0 deletions
27
pkgs/tools/security/bitwarden_rs/default.nix
Normal file
27
pkgs/tools/security/bitwarden_rs/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub, pkgconfig, openssl }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "bitwarden_rs";
|
||||
version = "1.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dani-garcia";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0jz9r6ck6sfz4ig95x0ja6g5ikyq6z0xw1zn9zf4kxha4klqqbkx";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig openssl ];
|
||||
|
||||
RUSTC_BOOTSTRAP = 1;
|
||||
|
||||
cargoSha256 = "0bzid5wrpcrghazv5652ghyv4amp298p5kfridswv175kmr9gg0x";
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
25
pkgs/tools/security/bitwarden_rs/vault.nix
Normal file
25
pkgs/tools/security/bitwarden_rs/vault.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bitwarden_rs-vault";
|
||||
version = "2.9.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/dani-garcia/bw_web_builds/releases/download/v${version}/bw_web_v${version}.tar.gz";
|
||||
sha256 = "0kh7nqd688ilw73n4pw3s6fahghwbhiql548js6cdwsp4car3vbb";
|
||||
};
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out/share/bitwarden_rs/vault
|
||||
cd $out/share/bitwarden_rs/vault
|
||||
tar xf $src
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Integrates the web vault into bitwarden_rs";
|
||||
homepage = https://github.com/dani-garcia/bw_web_builds;
|
||||
platforms = platforms.all;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ msteen ];
|
||||
};
|
||||
}
|
|
@ -666,6 +666,10 @@ in
|
|||
|
||||
bcachefs-tools = callPackage ../tools/filesystems/bcachefs-tools { };
|
||||
|
||||
bitwarden_rs = callPackage ../tools/security/bitwarden_rs { };
|
||||
|
||||
bitwarden_rs-vault = callPackage ../tools/security/bitwarden_rs/vault.nix { };
|
||||
|
||||
bitwarden-cli = callPackage ../tools/security/bitwarden-cli { };
|
||||
|
||||
bmap-tools = callPackage ../tools/misc/bmap-tools { };
|
||||
|
|
Loading…
Reference in a new issue