depot/third_party/nixpkgs/pkgs/servers/gemini/gmid/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

31 lines
716 B
Nix

{ lib, stdenv, fetchFromGitHub, fetchpatch, bison, libressl, libevent }:
stdenv.mkDerivation rec {
pname = "gmid";
version = "1.8";
src = fetchFromGitHub {
owner = "omar-polo";
repo = pname;
rev = version;
sha256 = "sha256-CwJPaZefRDyn2fliOd9FnOLXq70HFu2RsUZhzWQdE3E";
};
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;
};
}