Merge pull request #206071 from fpletz/pkg/cpp-jwt
cpp-jwt: init at 1.4
This commit is contained in:
commit
54958086cb
2 changed files with 33 additions and 0 deletions
31
pkgs/development/libraries/cpp-jwt/default.nix
Normal file
31
pkgs/development/libraries/cpp-jwt/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -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 { };
|
||||||
|
|
Loading…
Reference in a new issue