nixpkgs/pkgs/servers/gemini/gmnisrv/default.nix

31 lines
820 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromSourcehut, pkg-config, openssl, mime-types, scdoc }:
stdenv.mkDerivation rec {
pname = "gmnisrv";
2021-11-12 16:27:39 +01:00
version = "1.0";
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "gmnisrv";
2021-11-12 16:27:39 +01:00
rev = version;
sha256 = "sha256-V9HXXYQIo3zeqZjJEn+dhemNg6AU+ee3FRmBmXgLuYQ=";
};
2021-11-12 16:27:39 +01:00
postPatch = ''
substituteInPlace config.sh \
--replace "pkg-config" "${stdenv.cc.targetPrefix}pkg-config"
'';
MIMEDB = "${mime-types}/etc/mime.types";
2021-05-28 12:09:30 +02:00
nativeBuildInputs = [ pkg-config scdoc ];
buildInputs = [ openssl mime-types ];
meta = with lib; {
description = "A simple Gemini protocol server";
homepage = "https://git.sr.ht/~sircmpwn/gmnisrv";
license = licenses.gpl3Only;
maintainers = with maintainers; [ bsima jb55 ];
2021-05-28 12:09:30 +02:00
platforms = platforms.linux;
};
}