Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, bison, libressl, libevent }: 2 3stdenv.mkDerivation rec { 4 pname = "gmid"; 5 version = "1.8.6"; 6 7 src = fetchFromGitHub { 8 owner = "omar-polo"; 9 repo = pname; 10 rev = version; 11 hash = "sha256-ds5k5VHwc7/sq4PUe/WvxAx7gJkU4phKZk0KunPLNE0="; 12 }; 13 14 nativeBuildInputs = [ bison ]; 15 16 buildInputs = [ libressl libevent ]; 17 18 configureFlags = [ 19 "PREFIX=${placeholder "out"}" 20 ]; 21 22 meta = with lib; { 23 description = "Simple and secure Gemini server"; 24 homepage = "https://gmid.omarpolo.com/"; 25 license = licenses.isc; 26 maintainers = with maintainers; [ sikmir ]; 27 platforms = platforms.linux; 28 }; 29}