depot/third_party/nixpkgs/pkgs/tools/security/vaultwarden/vault.nix
Default email a425ba4985 Project import generated by Copybara.
GitOrigin-RevId: 5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3
2021-12-30 14:39:12 +01:00

28 lines
777 B
Nix

{ lib, stdenv, fetchurl, nixosTests }:
stdenv.mkDerivation rec {
pname = "vaultwarden-vault";
version = "2.25.0";
src = fetchurl {
url = "https://github.com/dani-garcia/bw_web_builds/releases/download/v${version}/bw_web_v${version}.tar.gz";
sha256 = "sha256-0uxkHz/oHWl4MdzV7zRVKgkEqOkrl7Fd405TOf472gw=";
};
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 ];
};
}