nur-packages

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

commit d5c812fa5508311e45f700f788ae4a8d4c4ed778
parent 21a7b3e8753becc7a60dd64fc9a1f91becc65878
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sun, 25 Jul 2021 03:51:04 +0300

Add gmid

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/gemini/gmid/default.nix | 30++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -169,6 +169,7 @@ lib.makeScope newScope ( gemreader = callPackage ./gemini/gemreader { }; gloggery = callPackage ./gemini/gloggery { }; gmi2html = callPackage ./gemini/gmi2html { }; + gmid = callPackage ./gemini/gmid { }; gmnhg = callPackage ./gemini/gmnhg { }; gmnigit = callPackage ./gemini/gmnigit { }; gssg = callPackage ./gemini/gssg { }; diff --git a/pkgs/gemini/gmid/default.nix b/pkgs/gemini/gmid/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, which, yacc, libressl, libevent }: + +stdenv.mkDerivation rec { + pname = "gmid"; + version = "1.7.2"; + + src = fetchFromGitHub { + owner = "omar-polo"; + repo = pname; + rev = version; + hash = "sha256-LmvpuPaLirUGKTQQIcCdLZI5lSi1CmoZaPbSM5Yyc+w="; + }; + + nativeBuildInputs = [ which yacc ]; + + buildInputs = [ libressl libevent ]; + + configurePhase = '' + ./configure PREFIX=$out + ''; + + meta = with lib; { + description = "Simple and secure Gemini server"; + homepage = "https://gmid.omarpolo.com/"; + license = licenses.isc; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + broken = stdenv.isDarwin; # explicit_bzero() compatibility function symbol exported in libressl + }; +}