5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
40 lines
973 B
Nix
40 lines
973 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, doxygen
|
|
, check
|
|
, jansson
|
|
, openssl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cjose";
|
|
version = "0.6.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zmartzone";
|
|
repo = "cjose";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-vDvCxMpgCdteGvNxy2HCNRaxbhxOuTadL0nM2wkFHtk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config doxygen ];
|
|
buildInputs = [ jansson openssl ];
|
|
nativeCheckInputs = [ check ];
|
|
|
|
configureFlags = [
|
|
"--with-jansson=${jansson}"
|
|
"--with-openssl=${openssl.dev}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/zmartzone/cjose";
|
|
changelog = "https://github.com/zmartzone/cjose/blob/${version}/CHANGELOG.md";
|
|
description = "C library for Javascript Object Signing and Encryption. This is a maintained fork of the original project";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ midchildan ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|