Unverified Commit 388a2a55 authored by K900's avatar K900 Committed by GitHub
Browse files

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

httplib: build with cmake + openssl
parents 8f9e20ec b27c7ee2
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
{ 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";