2018-05-08 11:35:28 +02:00
|
|
|
{ stdenv, pkgconfig, fetchFromGitHub, libbsd }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kcgi";
|
2018-12-25 20:45:24 +01:00
|
|
|
version = "0.10.8";
|
2018-05-08 11:35:28 +02:00
|
|
|
underscoreVersion = stdenv.lib.replaceChars ["."] ["_"] version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kristapsdz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "VERSION_${underscoreVersion}";
|
2018-12-25 20:45:24 +01:00
|
|
|
sha256 = "0ha6r7bcgf6pcn5gbd2sl7835givhda1jql49c232f1iair1yqyp";
|
2018-05-08 11:35:28 +02:00
|
|
|
};
|
|
|
|
patchPhase = ''substituteInPlace configure \
|
|
|
|
--replace /usr/local /
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ ] ++ stdenv.lib.optionals stdenv.isLinux [ libbsd ] ;
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://kristaps.bsd.lv/kcgi";
|
2018-05-08 11:35:28 +02:00
|
|
|
description = "Minimal CGI and FastCGI library for C/C++";
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.leenaars ];
|
|
|
|
};
|
|
|
|
}
|