depot/third_party/nixpkgs/pkgs/development/web/kcgi/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

34 lines
978 B
Nix

{ lib, stdenv, pkg-config, fetchFromGitHub, libbsd }:
stdenv.mkDerivation rec {
pname = "kcgi";
version = "0.10.8";
underscoreVersion = lib.replaceStrings ["."] ["_"] version;
src = fetchFromGitHub {
owner = "kristapsdz";
repo = pname;
rev = "VERSION_${underscoreVersion}";
sha256 = "0ha6r7bcgf6pcn5gbd2sl7835givhda1jql49c232f1iair1yqyp";
};
patchPhase = ''substituteInPlace configure \
--replace /usr/local /
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libbsd ] ;
dontAddPrefix = true;
installFlags = [ "DESTDIR=$(out)" ];
meta = with lib; {
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
homepage = "https://kristaps.bsd.lv/kcgi";
description = "Minimal CGI and FastCGI library for C/C++";
license = licenses.isc;
platforms = platforms.all;
maintainers = [ maintainers.leenaars ];
mainProgram = "kfcgi";
};
}