e5a79eacd6
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/kcgi/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/sl5jhxlixmz36c2fqzdhd5az8wnhmx2n-kcgi-0.10.7/bin/kfcgi had a zero exit code or showed the expected version - 0 of 1 passed binary check by having a zero exit code. - 0 of 1 passed binary check by having the new version present in output. - directory tree listing: https://gist.github.com/06d87d498d359996e0d7b408ba2265d2 - du listing: https://gist.github.com/4636af5ca6c5f9b15b55b27e0705b167
33 lines
905 B
Nix
33 lines
905 B
Nix
{ stdenv, pkgconfig, fetchFromGitHub, libbsd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kcgi";
|
|
version = "0.10.7";
|
|
underscoreVersion = stdenv.lib.replaceChars ["."] ["_"] version;
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kristapsdz";
|
|
repo = pname;
|
|
rev = "VERSION_${underscoreVersion}";
|
|
sha256 = "1z8gfj1v69hhkiyybr41qw7yv3cdxahgk45nipxfb9nmn18p0k8n";
|
|
};
|
|
patchPhase = ''substituteInPlace configure \
|
|
--replace /usr/local /
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ ] ++ stdenv.lib.optionals stdenv.isLinux [ libbsd ] ;
|
|
|
|
dontAddPrefix = true;
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
meta = with stdenv.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 ];
|
|
};
|
|
}
|