mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
41 lines
973 B
Nix
41 lines
973 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, doxygen
|
|
, check
|
|
, jansson
|
|
, openssl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cjose";
|
|
version = "0.6.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zmartzone";
|
|
repo = "cjose";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-QgSO4jFouowDJeUTT4kUEXD+ctQ7JiY/5DkiPyb+Z/I=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|