httplib: added pkgconfig (#452456)
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
fetchFromGitHub,
|
||||
openssl,
|
||||
stdenv,
|
||||
copyPkgconfigItems,
|
||||
makePkgconfigItem,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "httplib";
|
||||
version = "0.19.0";
|
||||
@@ -17,18 +18,36 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-OLwD7mpwqG7BUugUca+CJpPMaabJzUMC0zYzJK9PBCg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
copyPkgconfigItems
|
||||
];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
pkgconfigItems = [
|
||||
(makePkgconfigItem rec {
|
||||
name = "httplib";
|
||||
inherit (finalAttrs) version;
|
||||
cflags = [ "-I${variables.includedir}" ];
|
||||
variables = rec {
|
||||
prefix = placeholder "out";
|
||||
includedir = "${prefix}/include";
|
||||
};
|
||||
inherit (finalAttrs.meta) description;
|
||||
})
|
||||
];
|
||||
|
||||
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 = [ ];
|
||||
maintainers = with lib.maintainers; [
|
||||
fzakaria
|
||||
];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user