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";
|
2022-12-03 06:30:04 +00:00
|
|
|
version = "1.8.6";
|
2021-10-14 18:13:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "omar-polo";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-03 06:30:04 +00:00
|
|
|
hash = "sha256-ds5k5VHwc7/sq4PUe/WvxAx7gJkU4phKZk0KunPLNE0=";
|
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/";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|