nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "haven";
9 version = "1.1.0";
10
11 src = fetchFromGitHub {
12 owner = "bitvora";
13 repo = "haven";
14 tag = "v${version}";
15 hash = "sha256-2947XUAppZ3DLA5A4U6D/4O9pZQfCsPxjRn/4iHkrCg=";
16 };
17
18 vendorHash = "sha256-kcy18MDwb4pPwtJmHi7Riw9/+Rs47VrVIIXKbfnv1DI=";
19
20 postInstall = ''
21 mkdir -p $out/share/haven
22 cp -r $src/templates $out/share/haven/
23 cp $src/.env.example $out/share/haven/.env.example
24 '';
25
26 meta = {
27 description = "High Availability Vault for Events on Nostr";
28 homepage = "https://github.com/bitvora/haven";
29 changelog = "https://github.com/bitvora/haven/releases/tag/v${version}";
30 license = lib.licenses.mit;
31 maintainers = with lib.maintainers; [ felixzieger ];
32 mainProgram = "haven";
33 };
34}