2022-04-02 19:21:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, bison, libressl, libevent }:
|
2021-10-14 18:13:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gmid";
|
2024-08-25 13:04:26 +00:00
|
|
|
version = "2.1.1";
|
2021-10-14 18:13:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "omar-polo";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-08-25 13:04:26 +00:00
|
|
|
hash = "sha256-JyiGkVF9aRJXgWAwZEnGgaD+IiH3UzamfTAcWyN0now=";
|
2021-10-14 18:13:49 +00:00
|
|
|
};
|
|
|
|
|
2022-04-02 19:21:56 +00:00
|
|
|
nativeBuildInputs = [ bison ];
|
2021-10-14 18:13:49 +00:00
|
|
|
|
|
|
|
buildInputs = [ libressl libevent ];
|
|
|
|
|
2022-02-18 00:18:19 +00:00
|
|
|
configureFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
2021-10-14 18:13:49 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple and secure Gemini server";
|
|
|
|
homepage = "https://gmid.omarpolo.com/";
|
2024-06-16 20:48:03 +00:00
|
|
|
changelog = "https://gmid.omarpolo.com/changelog.html";
|
2021-10-14 18:13:49 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|