a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
32 lines
745 B
Nix
32 lines
745 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "httplib";
|
|
version = "0.11.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yhirose";
|
|
repo = "cpp-httplib";
|
|
rev = "v${version}";
|
|
hash = "sha256-gly0AQ2DCZJQCAPQL5Xsc/kTvFK2twIDbHwbjvrW+P4=";
|
|
};
|
|
|
|
# Header-only library.
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/include"
|
|
cp -r httplib.h "$out/include"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A C++ header-only HTTP/HTTPS server and client library";
|
|
homepage = "https://github.com/yhirose/cpp-httplib";
|
|
changelog = "https://github.com/yhirose/cpp-httplib/releases/tag/v${version}";
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|