nixpkgs/pkgs/development/libraries/cjose/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
973 B
Nix
Raw Normal View History

2021-04-04 11:03:43 +00:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, doxygen
, check
, jansson
, openssl
}:
stdenv.mkDerivation rec {
pname = "cjose";
2022-10-25 12:04:16 +00:00
version = "0.6.2.1";
2021-04-04 11:03:43 +00:00
src = fetchFromGitHub {
owner = "zmartzone";
2021-04-04 11:03:43 +00:00
repo = "cjose";
rev = "v${version}";
2022-10-25 12:04:16 +00:00
sha256 = "sha256-QgSO4jFouowDJeUTT4kUEXD+ctQ7JiY/5DkiPyb+Z/I=";
2021-04-04 11:03:43 +00:00
};
nativeBuildInputs = [ autoreconfHook pkg-config doxygen ];
buildInputs = [ jansson openssl ];
nativeCheckInputs = [ check ];
2021-04-04 11:03:43 +00:00
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";
2021-04-04 11:03:43 +00:00
license = licenses.mit;
maintainers = with maintainers; [ midchildan ];
platforms = platforms.all;
};
}