diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/httplib')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/httplib/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/httplib/default.nix b/nixpkgs/pkgs/development/libraries/httplib/default.nix new file mode 100644 index 000000000000..a65440848bee --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/httplib/default.nix @@ -0,0 +1,30 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, openssl +}: + +stdenv.mkDerivation rec { + pname = "httplib"; + version = "0.14.3"; + + src = fetchFromGitHub { + owner = "yhirose"; + repo = "cpp-httplib"; + rev = "v${version}"; + hash = "sha256-53EBZTpz0INtjVSmjvg7XOQf0Bs2ADVe2//+nK6xRyE="; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ openssl ]; + + meta = with lib; { + description = "A C++ header-only HTTP/HTTPS server and client library"; + homepage = "https://github.com/yhirose/cpp-httplib"; + changelog = "https://github.com/yhirose/cpp-httplib/releases/tag/v${version}"; + maintainers = with maintainers; [ aidalgol ]; + license = licenses.mit; + platforms = platforms.all; + }; +} |