From 1a611d4f4e25b513387ec3d09f942035a52102cc Mon Sep 17 00:00:00 2001 From: Michiel Leenaars Date: Tue, 8 May 2018 11:35:28 +0200 Subject: kcgi: init -> 0.10.5 --- pkgs/development/web/kcgi/default.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/development/web/kcgi/default.nix (limited to 'pkgs/development/web/kcgi') diff --git a/pkgs/development/web/kcgi/default.nix b/pkgs/development/web/kcgi/default.nix new file mode 100644 index 000000000000..6d91007e4860 --- /dev/null +++ b/pkgs/development/web/kcgi/default.nix @@ -0,0 +1,33 @@ +{ 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 ]; + }; +} -- cgit 1.4.1