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

29 lines
770 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, nixosTests }:
2019-04-23 19:25:46 +00:00
stdenv.mkDerivation rec {
pname = "bitwarden_rs-vault";
2020-12-10 11:39:25 +00:00
version = "2.17.1";
2019-04-23 19:25:46 +00:00
src = fetchurl {
url = "https://github.com/dani-garcia/bw_web_builds/releases/download/v${version}/bw_web_v${version}.tar.gz";
2020-12-10 11:39:25 +00:00
sha256 = "1kd21higniszk1na5ag7q4g0l7h6ddl91gpbjbwym28hsbjvxla7";
2019-04-23 19:25:46 +00:00
};
buildCommand = ''
mkdir -p $out/share/bitwarden_rs/
cd $out/share/bitwarden_rs/
2019-04-23 19:25:46 +00:00
tar xf $src
mv web-vault vault
2019-04-23 19:25:46 +00:00
'';
2020-06-06 10:55:50 +00:00
passthru.tests = nixosTests.bitwarden;
meta = with lib; {
2019-04-23 19:25:46 +00:00
description = "Integrates the web vault into bitwarden_rs";
2020-02-19 12:26:48 +00:00
homepage = "https://github.com/dani-garcia/bw_web_builds";
2019-04-23 19:25:46 +00:00
platforms = platforms.all;
license = licenses.gpl3;
maintainers = with maintainers; [ msteen ];
};
}