2022-02-10 20:34:41 +00:00
|
|
|
{ stdenv, lib, fetchFromSourcehut, pkg-config, openssl, mailcap, scdoc }:
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gmnisrv";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.0";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "gmnisrv";
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-V9HXXYQIo3zeqZjJEn+dhemNg6AU+ee3FRmBmXgLuYQ=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace config.sh \
|
|
|
|
--replace "pkg-config" "${stdenv.cc.targetPrefix}pkg-config"
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
MIMEDB = "${mailcap}/etc/mime.types";
|
2021-05-29 03:34:57 +00:00
|
|
|
nativeBuildInputs = [ pkg-config scdoc ];
|
2022-02-10 20:34:41 +00:00
|
|
|
buildInputs = [ openssl mailcap ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple Gemini protocol server";
|
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/gmnisrv";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ bsima jb55 ];
|
2021-05-29 03:34:57 +00:00
|
|
|
platforms = platforms.linux;
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
}
|