1 { lib, stdenv, fetchFromGitHub, cmake, openssl, gtest, nlohmann_json }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-5hVsFanTCT/uLLXrnb2kMvmL6qs9RXVkvxdWaT6m4mk=";
14 # fix reported version
15 patches = [ ./fix-version.patch ];
18 "-DCPP_JWT_USE_VENDORED_NLOHMANN_JSON=OFF"
19 "-DCPP_JWT_BUILD_EXAMPLES=OFF"
22 nativeBuildInputs = [ cmake gtest ];
24 buildInputs = [ openssl nlohmann_json ];
29 description = "JSON Web Token library for C++";
30 homepage = "https://github.com/arun11299/cpp-jwt";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ fpletz ];