Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 30 lines 799 B view raw
1{ 2 lib, 3 fetchFromSourcehut, 4 buildGoModule, 5}: 6buildGoModule rec { 7 pname = "betula"; 8 version = "1.4.0"; 9 10 src = fetchFromSourcehut { 11 owner = "~bouncepaw"; 12 repo = "betula"; 13 rev = "v${version}"; 14 hash = "sha256-f2F0YRhDnKdMqcUvpcRFNAI62gbusfzIUKQSZ65onMU="; 15 }; 16 vendorHash = "sha256-3PS4fIyHbGGjnbMOy2VIQBXsnIyYDKR/ecl/i5jwSVM="; 17 18 env.CGO_ENABLED = 1; 19 # These tests use internet, so are failing in Nix build. 20 # See also: https://todo.sr.ht/~bouncepaw/betula/91 21 checkFlags = "-skip=TestTitles|TestHEntries"; 22 23 meta = with lib; { 24 description = "Single-user self-hosted bookmarking software"; 25 mainProgram = "betula"; 26 homepage = "https://betula.mycorrhiza.wiki/"; 27 license = licenses.agpl3Only; 28 maintainers = with maintainers; [ GoldsteinE ]; 29 }; 30}