depot/third_party/nixpkgs/pkgs/tools/security/bitwarden_rs/vault.nix
Default email eefb417d14 Project import generated by Copybara.
GitOrigin-RevId: a52e974cff8fb80c427e0d55c01b3b8c770ccec4
2020-11-06 01:33:48 +01:00

28 lines
772 B
Nix

{ stdenv, fetchurl, nixosTests }:
stdenv.mkDerivation rec {
pname = "bitwarden_rs-vault";
version = "2.16.1";
src = fetchurl {
url = "https://github.com/dani-garcia/bw_web_builds/releases/download/v${version}/bw_web_v${version}.tar.gz";
sha256 = "1c4fcf8jzgd6636wv903r5msc9z5l56l2i4k93kvb2zvg7qj014w";
};
buildCommand = ''
mkdir -p $out/share/bitwarden_rs/
cd $out/share/bitwarden_rs/
tar xf $src
mv web-vault vault
'';
passthru.tests = nixosTests.bitwarden;
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 ];
};
}