nur-packages

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

commit 8e6cde0dc22c1c35437fd89931078038a9ab92e5
parent 048e97dac889670198717ac89676078a81930497
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu, 26 Oct 2023 21:40:18 +0400

Add gelim

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/gemini/gelim/default.nix | 35+++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -158,6 +158,7 @@ lib.makeScope newScope ( eva = callPackage ./gemini/eva { inherit (darwin.apple_sdk.frameworks) Security; }; + gelim = callPackage ./gemini/gelim { }; gemcert = callPackage ./gemini/gemcert { }; gemgen = callPackage ./gemini/gemgen { }; gemini-ipfs-gateway = callPackage ./gemini/gemini-ipfs-gateway { }; diff --git a/pkgs/gemini/gelim/default.nix b/pkgs/gemini/gelim/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, buildGoModule, fetchFromSourcehut, scdoc, installShellFiles }: + +buildGoModule rec { + pname = "gelim"; + version = "0.9.3"; + + src = fetchFromSourcehut { + owner = "~hedy"; + repo = "gelim"; + rev = "v${version}"; + hash = "sha256-xFOiE0OLaJ4WK+I8oNXNk7feP3nXp9wvH0bkNnBK1Yg="; + }; + + nativeBuildInputs = [ scdoc installShellFiles ]; + + vendorHash = "sha256-sWNPNZYcm296zhz57/NCaAlQxJ+Z1zzd/Y+KiLxZ46E="; + + ldflags = [ "-X main.Version=${version}" ]; + + postBuild = '' + scdoc < gelim.1.scd > gelim.1 + ''; + + postInstall = '' + installManPage gelim.1 + ''; + + meta = with lib; { + description = "A minimalist line-mode smolnet client written in go"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}