Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
1000 B
Nix
42 lines
1000 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 = "kcgi";
|
|
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";
|
|
};
|
|
}
|