package.nix (797B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 openssl, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "gem"; 10 version = "0-unstable-2024-08-29"; 11 12 __structuredAttrs = true; 13 14 src = fetchFromGitHub { 15 owner = "wrclark"; 16 repo = "gem"; 17 rev = "50c24989ce407bba55d4d7fd3b1cd6f165594463"; 18 hash = "sha256-AsLUAHnNSjKKzKL6Am/DfV4GTdIozdF6k+hmAdHr4jc="; 19 }; 20 21 postPatch = '' 22 substituteInPlace Makefile --replace "CFLAGS +=" "#CFLAGS +=" 23 ''; 24 25 buildInputs = [ openssl ]; 26 27 makeFlags = [ "CC:=$(CC)" ]; 28 29 installPhase = '' 30 install -Dm755 gem -t $out/bin 31 ''; 32 33 meta = { 34 description = "gemini server"; 35 homepage = "https://github.com/wrclark/gem"; 36 license = lib.licenses.free; 37 maintainers = [ lib.maintainers.sikmir ]; 38 platforms = lib.platforms.unix; 39 }; 40 })
