2021-11-16 09:30:31 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, bison, libressl, libevent }:
|
2021-10-14 18:13:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gmid";
|
2022-02-03 11:10:22 +00:00
|
|
|
version = "1.8";
|
2021-10-14 18:13:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "omar-polo";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-03 11:10:22 +00:00
|
|
|
sha256 = "sha256-CwJPaZefRDyn2fliOd9FnOLXq70HFu2RsUZhzWQdE3E";
|
2021-10-14 18:13:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison ];
|
|
|
|
|
|
|
|
buildInputs = [ libressl libevent ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
|
|
|
./configure PREFIX=$out
|
|
|
|
runHook postConfigure
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple and secure Gemini server";
|
|
|
|
homepage = "https://gmid.omarpolo.com/";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|