Merge pull request #206071 from fpletz/pkg/cpp-jwt

cpp-jwt: init at 1.4
This commit is contained in:
Robin Gloster 2022-12-14 21:13:27 +00:00 committed by GitHub
commit 54958086cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ lib, stdenv, fetchFromGitHub, cmake, openssl, gtest, nlohmann_json }:
stdenv.mkDerivation rec {
pname = "cpp-jwt";
version = "1.4";
src = fetchFromGitHub {
owner = "arun11299";
repo = pname;
rev = "v${version}";
sha256 = "sha256-5hVsFanTCT/uLLXrnb2kMvmL6qs9RXVkvxdWaT6m4mk=";
};
cmakeFlags = [
"-DCPP_JWT_USE_VENDORED_NLOHMANN_JSON=OFF"
"-DCPP_JWT_BUILD_EXAMPLES=OFF"
];
nativeBuildInputs = [ cmake gtest ];
buildInputs = [ openssl nlohmann_json ];
doCheck = true;
meta = {
description = "JSON Web Token library for C++";
homepage = "https://github.com/arun11299/cpp-jwt";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fpletz ];
};
}

View file

@ -18768,6 +18768,8 @@ with pkgs;
boost = boost169; # fatal error: 'boost/asio/stream_socket_service.hpp' file not found boost = boost169; # fatal error: 'boost/asio/stream_socket_service.hpp' file not found
}; };
cpp-jwt = callPackage ../development/libraries/cpp-jwt { };
ubus = callPackage ../development/libraries/ubus { }; ubus = callPackage ../development/libraries/ubus { };
uci = callPackage ../development/libraries/uci { }; uci = callPackage ../development/libraries/uci { };