2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, nixosTests }:
|
2019-04-23 20:25:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-01 10:14:51 +01:00
|
|
|
pname = "vaultwarden-vault";
|
2022-04-04 02:04:16 +01:00
|
|
|
version = "2.27.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";
|
2022-04-04 02:04:16 +01:00
|
|
|
sha256 = "sha256-r4z45gjVB+RMZM0IE/ec0yf+rt4YDz5IpZEz5FlQSds=";
|
2019-04-23 20:25:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
2021-07-01 10:14:51 +01:00
|
|
|
mkdir -p $out/share/vaultwarden/
|
|
|
|
cd $out/share/vaultwarden/
|
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
|
|
|
'';
|
|
|
|
|
2021-07-01 10:14:51 +01:00
|
|
|
passthru.tests = nixosTests.vaultwarden;
|
2020-06-06 11:55:50 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-07-01 10:14:51 +01:00
|
|
|
description = "Integrates the web vault into vaultwarden";
|
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;
|
2021-02-09 09:48:38 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-02-09 09:14:19 +00:00
|
|
|
maintainers = with maintainers; [ msteen mic92 ];
|
2019-04-23 20:25:46 +01:00
|
|
|
};
|
|
|
|
}
|