2021-04-05 15:23:46 +00:00
|
|
|
{ stdenv, lib, fetchFromSourcehut, pkg-config, openssl, mime-types, scdoc }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gmnisrv";
|
2021-05-29 03:34:57 +00:00
|
|
|
version = "unstable-2021-05-16";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "gmnisrv";
|
2021-05-29 03:34:57 +00:00
|
|
|
rev = "b9a92193e96bbe621ebc8430d8308d45a5b86cef";
|
|
|
|
sha256 = "sha256-eMKsoq3Y+eS20nxI7EoDLbdwdoB6shbGt6p8wS+uoPc=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
MIMEDB = "${mime-types}/etc/mime.types";
|
2021-05-29 03:34:57 +00:00
|
|
|
nativeBuildInputs = [ pkg-config scdoc ];
|
|
|
|
buildInputs = [ openssl mime-types ];
|
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
|
|
|
};
|
|
|
|
}
|