2022-07-14 12:49:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, pkg-config, ninja, asciidoc
|
2020-04-24 23:36:52 +00:00
|
|
|
, zlib, jansson, openssl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jose";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "latchset";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-rMNPJaCtVpbwIkMQzBNpmRct6S/NelTwjmsuB0RP6R8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [ meson pkg-config ninja asciidoc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ zlib jansson openssl ];
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "C-language implementation of Javascript Object Signing and Encryption";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jose";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/latchset/jose";
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.asl20;
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|