1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/web/kcgi/default.nix

34 lines
905 B
Nix
Raw Normal View History

2018-05-08 10:35:28 +01:00
{ stdenv, pkgconfig, fetchFromGitHub, libbsd }:
stdenv.mkDerivation rec {
pname = "kcgi";
version = "0.10.5";
underscoreVersion = stdenv.lib.replaceChars ["."] ["_"] version;
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "kristapsdz";
repo = pname;
rev = "VERSION_${underscoreVersion}";
sha256 = "0ksdjqibkj7h1a99i84i6y0949c0vwx789q0sslzdkkgqvjnw3xw";
};
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 ];
};
}