2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bitwarden_rs-vault";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "2.14.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/dani-garcia/bw_web_builds/releases/download/v${version}/bw_web_v${version}.tar.gz";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "16620md9lsxw6s0qzv5vj9kfkgxnlaxfrax6s2h3h39skza80x2c";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/share/bitwarden_rs/
|
|
|
|
cd $out/share/bitwarden_rs/
|
|
|
|
tar xf $src
|
|
|
|
mv web-vault vault
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|