2020-06-06 11:55:50 +01:00
|
|
|
{ stdenv, fetchurl, nixosTests }:
|
2019-04-23 20:25:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bitwarden_rs-vault";
|
2020-10-17 20:12:17 +01:00
|
|
|
version = "2.16.1";
|
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";
|
2020-10-17 20:12:17 +01:00
|
|
|
sha256 = "1c4fcf8jzgd6636wv903r5msc9z5l56l2i4k93kvb2zvg7qj014w";
|
2019-04-23 20:25:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
2020-03-08 15:41:00 +00:00
|
|
|
mkdir -p $out/share/bitwarden_rs/
|
|
|
|
cd $out/share/bitwarden_rs/
|
2019-04-23 20:25:46 +01:00
|
|
|
tar xf $src
|
2020-03-08 15:41:00 +00:00
|
|
|
mv web-vault vault
|
2019-04-23 20:25:46 +01:00
|
|
|
'';
|
|
|
|
|
2020-06-06 11:55:50 +01:00
|
|
|
passthru.tests = nixosTests.bitwarden;
|
|
|
|
|
2019-04-23 20:25:46 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 20:25:46 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ msteen ];
|
|
|
|
};
|
|
|
|
}
|