2021-03-09 03:18:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config, jansson, openssl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libjwt";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "1.15.2";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "benmcollins";
|
|
|
|
repo = "libjwt";
|
|
|
|
rev = "v${version}";
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-fdMrJaD0jq4aQtxNLUvPVP6dWMwp3Mz4TuW2zX6r7QA=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ jansson openssl ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/benmcollins/libjwt";
|
|
|
|
description = "JWT C Library";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ pnotequalnp ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|