Commit b27c7ee2 authored by K900's avatar K900
Browse files

httplib: build with cmake + openssl

This is required to get the cmake files generated and installed
parent 30c7019f
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";