2019-04-23 20:25:46 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bitwarden_rs-vault";
|
2019-10-21 06:55:00 +01:00
|
|
|
version = "2.12.0";
|
2019-04-23 20:25:46 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/dani-garcia/bw_web_builds/releases/download/v${version}/bw_web_v${version}.tar.gz";
|
2019-10-21 06:55:00 +01:00
|
|
|
sha256 = "064dxfplqn67grpx03ryzshwmr7s00w4mll0hk0anddviwvd8r1n";
|
2019-04-23 20:25:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|