1 { stdenv, lib, fetchFromSourcehut, pkg-config, openssl, mailcap, scdoc }:
3 stdenv.mkDerivation rec {
7 src = fetchFromSourcehut {
11 sha256 = "sha256-V9HXXYQIo3zeqZjJEn+dhemNg6AU+ee3FRmBmXgLuYQ=";
14 env.NIX_CFLAGS_COMPILE = toString [
15 "-Wno-error=deprecated-declarations"
19 substituteInPlace config.sh \
20 --replace "pkg-config" "${stdenv.cc.targetPrefix}pkg-config"
23 MIMEDB = "${mailcap}/etc/mime.types";
24 nativeBuildInputs = [ pkg-config scdoc ];
25 buildInputs = [ openssl mailcap ];
28 description = "Simple Gemini protocol server";
29 mainProgram = "gmnisrv";
30 homepage = "https://git.sr.ht/~sircmpwn/gmnisrv";
31 license = licenses.gpl3Only;
32 maintainers = with maintainers; [ bsima jb55 ];
33 platforms = platforms.linux;