a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
32 lines
873 B
Nix
32 lines
873 B
Nix
{ lib, stdenv, pkgconfig, fetchFromGitHub, libbsd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kcgi";
|
|
version = "0.10.8";
|
|
underscoreVersion = stdenv.lib.replaceChars ["."] ["_"] version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kristapsdz";
|
|
repo = pname;
|
|
rev = "VERSION_${underscoreVersion}";
|
|
sha256 = "0ha6r7bcgf6pcn5gbd2sl7835givhda1jql49c232f1iair1yqyp";
|
|
};
|
|
patchPhase = ''substituteInPlace configure \
|
|
--replace /usr/local /
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ ] ++ stdenv.lib.optionals stdenv.isLinux [ libbsd ] ;
|
|
|
|
dontAddPrefix = true;
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://kristaps.bsd.lv/kcgi";
|
|
description = "Minimal CGI and FastCGI library for C/C++";
|
|
license = licenses.isc;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.leenaars ];
|
|
};
|
|
}
|