mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 19:17:48 +00:00
Merge pull request #228869 from K900/cpp-httplib-cmake
httplib: build with cmake + openssl
This commit is contained in:
commit
388a2a553a
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user