mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
haven: init at 1.0.5
This commit is contained in:
parent
88b2709b78
commit
415f5645e2
1 changed files with 34 additions and 0 deletions
34
pkgs/by-name/ha/haven/package.nix
Normal file
34
pkgs/by-name/ha/haven/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue