35 lines
743 B
Nix
35 lines
743 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
cmake,
|
||
|
|
fetchFromGitHub,
|
||
|
|
openssl,
|
||
|
|
stdenv,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
|
pname = "httplib";
|
||
|
|
version = "0.19.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "yhirose";
|
||
|
|
repo = "cpp-httplib";
|
||
|
|
rev = "v${finalAttrs.version}";
|
||
|
|
hash = "sha256-OLwD7mpwqG7BUugUca+CJpPMaabJzUMC0zYzJK9PBCg=";
|
||
|
|
};
|
||
|
|
|
||
|
|
nativeBuildInputs = [ cmake ];
|
||
|
|
|
||
|
|
buildInputs = [ openssl ];
|
||
|
|
|
||
|
|
strictDeps = true;
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
homepage = "https://github.com/yhirose/cpp-httplib";
|
||
|
|
description = "C++ header-only HTTP/HTTPS server and client library";
|
||
|
|
changelog = "https://github.com/yhirose/cpp-httplib/releases/tag/${finalAttrs.src.rev}";
|
||
|
|
license = lib.licenses.mit;
|
||
|
|
maintainers = [ ];
|
||
|
|
platforms = lib.platforms.all;
|
||
|
|
};
|
||
|
|
})
|