Merge pull request #228869 from K900/cpp-httplib-cmake

httplib: build with cmake + openssl
This commit is contained in:
K900 2023-04-29 13:00:57 +03:00 committed by GitHub
commit 388a2a553a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,11 @@
{ lib
, stdenvNoCC
, stdenv
, fetchFromGitHub
, cmake
, openssl
}:
stdenvNoCC.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "httplib";
version = "0.12.2";
@ -14,13 +16,8 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-mpHw9fzGpYz04rgnfG/qTNrXIf6q+vFfIsjb56kJsLg=";
};
# Header-only library.
dontBuild = true;
installPhase = ''
mkdir -p "$out/include"
cp -r httplib.h "$out/include"
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ openssl ];
meta = with lib; {
description = "A C++ header-only HTTP/HTTPS server and client library";