forked from mirrors/nixpkgs
httplib: init at 0.11.1
This commit is contained in:
parent
4e7bf713cf
commit
171bd946e7
31
pkgs/development/libraries/httplib/default.nix
Normal file
31
pkgs/development/libraries/httplib/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue