nixpkgs/pkgs/tools/security/vaultwarden/vault.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
779 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, nixosTests }:
2019-04-23 19:25:46 +00:00
stdenv.mkDerivation rec {
pname = "vaultwarden-vault";
version = "2022.6.2";
2019-04-23 19:25:46 +00:00
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=";
2019-04-23 19:25:46 +00:00
};
buildCommand = ''
mkdir -p $out/share/vaultwarden/
cd $out/share/vaultwarden/
2019-04-23 19:25:46 +00:00
tar xf $src
mv web-vault vault
2019-04-23 19:25:46 +00:00
'';
passthru.tests = nixosTests.vaultwarden;
2020-06-06 10:55:50 +00:00
meta = with lib; {
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 19:25:46 +00:00
platforms = platforms.all;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ msteen mic92 ];
2019-04-23 19:25:46 +00:00
};
}