2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, nixosTests }:
|
2019-04-23 21:25:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bitwarden_rs-vault";
|
2021-03-29 15:35:20 +02:00
|
|
|
version = "2.19.0";
|
2019-04-23 21:25:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/dani-garcia/bw_web_builds/releases/download/v${version}/bw_web_v${version}.tar.gz";
|
2021-03-29 15:35:20 +02:00
|
|
|
sha256 = "sha256:0yrk2b2d5sld4z60siacafdz95gqikcv4snzd6hwhq1l6kz151az";
|
2019-04-23 21:25:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
2020-03-08 16:41:00 +01:00
|
|
|
mkdir -p $out/share/bitwarden_rs/
|
|
|
|
cd $out/share/bitwarden_rs/
|
2019-04-23 21:25:46 +02:00
|
|
|
tar xf $src
|
2020-03-08 16:41:00 +01:00
|
|
|
mv web-vault vault
|
2019-04-23 21:25:46 +02:00
|
|
|
'';
|
|
|
|
|
2020-06-06 12:55:50 +02:00
|
|
|
passthru.tests = nixosTests.bitwarden;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-04-23 21:25:46 +02:00
|
|
|
description = "Integrates the web vault into bitwarden_rs";
|
2020-02-19 13:26:48 +01:00
|
|
|
homepage = "https://github.com/dani-garcia/bw_web_builds";
|
2019-04-23 21:25:46 +02:00
|
|
|
platforms = platforms.all;
|
2021-02-09 10:48:38 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2021-02-09 10:14:19 +01:00
|
|
|
maintainers = with maintainers; [ msteen mic92 ];
|
2019-04-23 21:25:46 +02:00
|
|
|
};
|
|
|
|
}
|