nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit a81c44e846925e98f75853c71377506e45da8e4b
parent 161db8a20a144faa2d9836c080a8060efb1d9fa9
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Mon, 20 Nov 2023 20:59:30 +0400

Add tootik

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/gemini/tootik/default.nix | 28++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -184,6 +184,7 @@ lib.makeScope newScope ( stagit-gemini-milotier = callPackage ./gemini/stagit-gemini/milotier.nix { }; stagit-gemini-sloum = callPackage ./gemini/stagit-gemini/sloum.nix { }; tom = callPackage ./gemini/tom { }; + tootik = callPackage ./gemini/tootik { }; ### GEOSPATIAL diff --git a/pkgs/gemini/tootik/default.nix b/pkgs/gemini/tootik/default.nix @@ -0,0 +1,28 @@ +{ lib, buildGoModule, fetchFromGitHub, openssl }: + +buildGoModule rec { + pname = "tootik"; + version = "0.4.5"; + + src = fetchFromGitHub { + owner = "dimkr"; + repo = "tootik"; + rev = version; + hash = "sha256-mg3DYGYp8zgQW2fQiUG/UM18DTQIP3Z3hS26dxBO9hc="; + }; + + vendorHash = "sha256-hmW2I8ToS6gbjekb8JRj+DFm7sOIGPMXzNggJsifyQk="; + + nativeBuildInputs = [ openssl ]; + + preBuild = '' + go generate ./migrations + ''; + + meta = with lib; { + description = "A federated nanoblogging service with a Gemini frontend"; + inherit (src.meta) homepage; + license = licenses.asl20; + maintainers = [ maintainers.sikmir ]; + }; +}