haven: init at 1.0.5

This commit is contained in:
Felix Zieger 2025-02-21 11:54:42 +01:00
parent 88b2709b78
commit 415f5645e2

View file

@ -0,0 +1,34 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "haven";
version = "1.0.5";
src = fetchFromGitHub {
owner = "bitvora";
repo = "haven";
tag = "v${version}";
hash = "sha256-rSycrHW53TgqbsfgaRn3492EWtpu440GtbegozqnzMQ=";
};
vendorHash = "sha256-5d6C2sNG8aCaC+z+hyLgOiEPWP/NmAcRRbRVC4KuCEw=";
postInstall = ''
mkdir -p $out/share/haven
cp -r $src/templates $out/share/haven/
cp $src/.env.example $out/share/haven/.env.example
'';
meta = {
description = "High Availability Vault for Events on Nostr";
homepage = "https://github.com/bitvora/haven";
changelog = "https://github.com/bitvora/haven/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ felixzieger ];
mainProgram = "haven";
};
}