nur-packages

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

commit 1c7061c3577aa9a16427c5f4a2a3955b6ff22ba7
parent d565cbfcf11aacd14c7748d04558b88851e37033
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed, 22 Sep 2021 22:23:17 +0300

Add gemserv

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

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -181,6 +181,7 @@ lib.makeScope newScope ( gemini-ipfs-gateway = callPackage ./gemini/gemini-ipfs-gateway { }; geminid = callPackage ./gemini/geminid { }; gemreader = callPackage ./gemini/gemreader { }; + gemserv = callPackage ./gemini/gemserv { }; gloggery = callPackage ./gemini/gloggery { }; gmi2html = callPackage ./gemini/gmi2html { }; gmid = callPackage ./gemini/gmid { }; diff --git a/pkgs/gemini/gemserv/default.nix b/pkgs/gemini/gemserv/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, rustPlatform, fetchFromSourcehut, pkg-config, openssl }: + +rustPlatform.buildRustPackage rec { + pname = "gemserv"; + version = "0.4.5"; + + src = fetchFromSourcehut { + owner = "~int80h"; + repo = pname; + rev = "v${version}"; + hash = "sha256-9O4kzNpc4alnjJ3ioCv1kKfNDxIu5IA8PX0EUb6S2RY="; + }; + + cargoHash = "sha256-if9rWZffXVL9nijtdaisgaabyKkEpJkDeYKv2L4/4co="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ]; + + postInstall = '' + install -Dm644 config.toml -t $out/share/gemserv + ''; + + meta = with lib; { + description = "A gemini server written in rust"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}