2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, pkg-config, fetchFromGitHub, libbsd }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kcgi";
|
|
|
|
version = "0.10.8";
|
2021-02-05 17:12:51 +00:00
|
|
|
underscoreVersion = lib.replaceChars ["."] ["_"] version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kristapsdz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "VERSION_${underscoreVersion}";
|
|
|
|
sha256 = "0ha6r7bcgf6pcn5gbd2sl7835givhda1jql49c232f1iair1yqyp";
|
|
|
|
};
|
|
|
|
patchPhase = ''substituteInPlace configure \
|
|
|
|
--replace /usr/local /
|
|
|
|
'';
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ ] ++ lib.optionals stdenv.isLinux [ libbsd ] ;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://kristaps.bsd.lv/kcgi";
|
|
|
|
description = "Minimal CGI and FastCGI library for C/C++";
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.leenaars ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "kfcgi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|