mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
99631c06d0
https://github.com/dani-garcia/bw_web_builds/releases/tag/v2022.6.2 https://github.com/dani-garcia/bw_web_builds/releases/tag/v2022.6.0
29 lines
779 B
Nix
29 lines
779 B
Nix
{ lib, stdenv, fetchurl, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "vaultwarden-vault";
|
|
version = "2022.6.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/dani-garcia/bw_web_builds/releases/download/v${version}/bw_web_v${version}.tar.gz";
|
|
sha256 = "sha256-IG/eCBTUa7eKeaelqxCWO+rrXJUuBanhsYwklftxdOE=";
|
|
};
|
|
|
|
buildCommand = ''
|
|
mkdir -p $out/share/vaultwarden/
|
|
cd $out/share/vaultwarden/
|
|
tar xf $src
|
|
mv web-vault vault
|
|
'';
|
|
|
|
passthru.tests = nixosTests.vaultwarden;
|
|
|
|
meta = with lib; {
|
|
description = "Integrates the web vault into vaultwarden";
|
|
homepage = "https://github.com/dani-garcia/bw_web_builds";
|
|
platforms = platforms.all;
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ msteen mic92 ];
|
|
};
|
|
}
|