nixpkgs/pkgs/by-name/be/betula/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
790 B
Nix

{ lib
, fetchFromSourcehut
, buildGoModule
}: buildGoModule rec {
pname = "betula";
version = "1.1.0";
src = fetchFromSourcehut {
owner = "~bouncepaw";
repo = "betula";
rev = "v${version}";
hash = "sha256-MH6YeWG94YVBgx5Es3oMJ9A/hAPPBXpAcIdCJV3HX78=";
};
vendorHash = "sha256-wiMIhoSO7nignNWY16OpDYZCguRbcEwwO/HggKSC5jM=";
CGO_ENABLED = 1;
# These tests use internet, so are failing in Nix build.
# See also: https://todo.sr.ht/~bouncepaw/betula/91
checkFlags = "-skip=TestTitles|TestHEntries";
meta = with lib; {
description = "Single-user self-hosted bookmarking software";
mainProgram = "betula";
homepage = "https://betula.mycorrhiza.wiki/";
license = licenses.agpl3Only;
maintainers = with maintainers; [ GoldsteinE ];
};
}