mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
0e6f5d2b9b
- finalAttrs - strictDeps - no nested with - add AndersonTorres as maintainer
38 lines
805 B
Nix
38 lines
805 B
Nix
{
|
|
lib,
|
|
cmake,
|
|
fetchFromGitHub,
|
|
openssl,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "httplib";
|
|
version = "0.17.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yhirose";
|
|
repo = "cpp-httplib";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-yvaPIbRqJGkiob3Nrv3H1ieFAC5b+h1tTncJWTy4dmk=";
|
|
};
|
|
|
|
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 = with lib.maintainers; [
|
|
AndersonTorres
|
|
aidalgol
|
|
];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|