nixpkgs/pkgs/development/web/kcgi/default.nix

33 lines
859 B
Nix
Raw Normal View History

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