3
0
Fork 0
forked from mirrors/nixpkgs

httplib: init at 0.11.1

This commit is contained in:
Aidan Gauland 2022-08-12 17:19:41 +12:00
parent 4e7bf713cf
commit 171bd946e7
No known key found for this signature in database
GPG key ID: 16E68DD2D0E77C91
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation rec {
pname = "httplib";
version = "0.11.1";
src = fetchFromGitHub {
owner = "yhirose";
repo = "cpp-httplib";
rev = "v${version}";
sha256 = "sha256-rsElqtoRz/sOXpAsfSJbMlwIKdaGJkSZfKHzB/wMhY8=";
};
# Header-only library.
dontBuild = true;
installPhase = ''
mkdir -p "$out/include"
cp -r httplib.h "$out/include"
'';
meta = with lib; {
description = "A C++ header-only HTTP/HTTPS server and client library";
homepage = "https://github.com/yhirose/cpp-httplib";
maintainers = with maintainers; [ aidalgol ];
license = licenses.mit;
};
}

View file

@ -19052,6 +19052,8 @@ with pkgs;
graphinder = callPackage ../tools/security/graphinder { };
httplib = callPackage ../development/libraries/httplib { };
icon-lang = callPackage ../development/interpreters/icon-lang { };
libgit2 = callPackage ../development/libraries/libgit2 {