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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
811 B
Nix
Raw Normal View History

2022-01-25 11:08:16 +01:00
{ stdenv, lib, fetchFromSourcehut, pkg-config, openssl, mailcap, 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"
'';
2022-01-25 11:08:16 +01:00
MIMEDB = "${mailcap}/etc/mime.types";
2021-05-28 12:09:30 +02:00
nativeBuildInputs = [ pkg-config scdoc ];
2022-01-25 11:08:16 +01:00
buildInputs = [ openssl mailcap ];
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;
};
}