nur-packages

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

commit 3e501c89c5b931e40d6a437a8c96bc2ad57da226
parent 4f45f5e475e6877a87953b17c2ca547ccf4eceac
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sat, 31 Aug 2024 08:38:00 +0400

Add gem

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/gemini/gem/default.nix | 38++++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -158,6 +158,7 @@ lib.makeScope newScope ( comitium = callPackage ./gemini/comitium { }; eva = callPackage ./gemini/eva { }; gelim = callPackage ./gemini/gelim { }; + gem = callPackage ./gemini/gem { }; gemcert = callPackage ./gemini/gemcert { }; gemgen = callPackage ./gemini/gemgen { }; gemini-ipfs-gateway = callPackage ./gemini/gemini-ipfs-gateway { }; diff --git a/pkgs/gemini/gem/default.nix b/pkgs/gemini/gem/default.nix @@ -0,0 +1,38 @@ +{ + lib, + stdenv, + fetchFromGitHub, + openssl, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "gem"; + version = "0-unstable-2024-08-29"; + + src = fetchFromGitHub { + owner = "wrclark"; + repo = "gem"; + rev = "50c24989ce407bba55d4d7fd3b1cd6f165594463"; + hash = "sha256-AsLUAHnNSjKKzKL6Am/DfV4GTdIozdF6k+hmAdHr4jc="; + }; + + postPatch = '' + substituteInPlace Makefile --replace "CFLAGS +=" "#CFLAGS +=" + ''; + + buildInputs = [ openssl ]; + + makeFlags = [ "CC:=$(CC)" ]; + + installPhase = '' + install -Dm755 gem -t $out/bin + ''; + + meta = { + description = "gemini server"; + homepage = "https://github.com/wrclark/gem"; + license = lib.licenses.free; + maintainers = [ lib.maintainers.sikmir ]; + platforms = lib.platforms.unix; + }; +})