default.nix (817B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libconfig, 6 file, 7 openssl, 8 flex, 9 }: 10 11 stdenv.mkDerivation (finalAttrs: { 12 pname = "geminid"; 13 version = "0-unstable-2022-04-15"; 14 15 src = fetchFromGitHub { 16 owner = "jovoro"; 17 repo = "geminid"; 18 rev = "eec25221eadfa47b09de5bd0dc15e90b1263d43a"; 19 hash = "sha256-d9zs0fqH9YqhNfcPY66Ynoq2xo6n/h+sgRcD80ZBCNU="; 20 }; 21 22 nativeBuildInputs = [ flex ]; 23 24 buildInputs = [ 25 libconfig 26 file 27 openssl.dev 28 ]; 29 30 makeFlags = [ 31 "geminid" 32 "CC:=$(CC)" 33 "LEX=flex" 34 ]; 35 36 installPhase = "install -Dm755 geminid -t $out/bin"; 37 38 meta = { 39 description = "Gemini Server in C"; 40 homepage = "https://github.com/jovoro/geminid"; 41 license = lib.licenses.bsd3; 42 maintainers = [ lib.maintainers.sikmir ]; 43 platforms = lib.platforms.unix; 44 }; 45 })