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

httplib: build with cmake + openssl

authored by

K900 and committed by
GitHub
388a2a55 8f9e20ec

+6 -9
+6 -9
pkgs/development/libraries/httplib/default.nix
··· 1 { lib 2 - , stdenvNoCC 3 , fetchFromGitHub 4 }: 5 6 - stdenvNoCC.mkDerivation rec { 7 pname = "httplib"; 8 version = "0.12.2"; 9 ··· 14 hash = "sha256-mpHw9fzGpYz04rgnfG/qTNrXIf6q+vFfIsjb56kJsLg="; 15 }; 16 17 - # Header-only library. 18 - dontBuild = true; 19 - 20 - installPhase = '' 21 - mkdir -p "$out/include" 22 - cp -r httplib.h "$out/include" 23 - ''; 24 25 meta = with lib; { 26 description = "A C++ header-only HTTP/HTTPS server and client library";
··· 1 { lib 2 + , stdenv 3 , fetchFromGitHub 4 + , cmake 5 + , openssl 6 }: 7 8 + stdenv.mkDerivation rec { 9 pname = "httplib"; 10 version = "0.12.2"; 11 ··· 16 hash = "sha256-mpHw9fzGpYz04rgnfG/qTNrXIf6q+vFfIsjb56kJsLg="; 17 }; 18 19 + nativeBuildInputs = [ cmake ]; 20 + buildInputs = [ openssl ]; 21 22 meta = with lib; { 23 description = "A C++ header-only HTTP/HTTPS server and client library";