commit d3acfaffd31957c02017dd3d6069321da83480b2 parent d2914e825117545a893b4fdf12b8025b995c67df Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Thu, 25 Mar 2021 22:34:57 +0300 Add satellite Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/gemini/satellite/default.nix | | | 23 | +++++++++++++++++++++++ |
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -189,6 +189,7 @@ lib.makeScope newScope ( kiln = callPackage ./gemini/kiln { }; kineto = callPackage ./gemini/kineto { }; md2gemini = callPackage ./gemini/md2gemini { }; + satellite = callPackage ./gemini/satellite { }; shavit = callPackage ./gemini/shavit { }; ### GIS diff --git a/pkgs/gemini/satellite/default.nix b/pkgs/gemini/satellite/default.nix @@ -0,0 +1,23 @@ +{ lib, buildGoModule, fetchFromSourcehut }: + +buildGoModule rec { + pname = "satellite"; + version = "1.0.0"; + + src = fetchFromSourcehut { + owner = "~gsthnz"; + repo = pname; + rev = "v${version}"; + sha256 = "0s0dnjb140w6xiw0nfif86ia38xym5gwbyx671k43zavw9721svw"; + }; + + vendorSha256 = "188v7nax3yss7hqin41mjin8inkh6q7bv8pmbls2dwd809pxj5rp"; + + meta = with lib; { + description = "Small Gemini server for serving static files"; + homepage = "https://git.sr.ht/~gsthnz/satellite"; + license = licenses.agpl3Only; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}