39 lines
682 B
Nix
39 lines
682 B
Nix
|
|
{
|
||
|
|
stdenv,
|
||
|
|
lib,
|
||
|
|
fetchFromGitHub,
|
||
|
|
autoreconfHook,
|
||
|
|
pkg-config,
|
||
|
|
jansson,
|
||
|
|
openssl,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenv.mkDerivation rec {
|
||
|
|
pname = "libjwt";
|
||
|
|
version = "1.18.1";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "benmcollins";
|
||
|
|
repo = "libjwt";
|
||
|
|
rev = "v${version}";
|
||
|
|
sha256 = "sha256-0gFMeSW4gfbI6MUctcN8UuKhMDswaT8BzHTV2VuwZzc=";
|
||
|
|
};
|
||
|
|
|
||
|
|
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;
|
||
|
|
};
|
||
|
|
}
|