summary refs log tree commit diff
path: root/pkgs/development/libraries/cjose
diff options
context:
space:
mode:
authormidchildan <git@midchildan.org>2021-04-04 20:03:43 +0900
committermidchildan <git@midchildan.org>2021-04-27 00:02:02 +0900
commitcfcda0dc34e2851d06c7db41328648dc7d87763a (patch)
tree8b56d0f3e757f35df52da5008610325f4f9d76eb /pkgs/development/libraries/cjose
parent167f3c32a45259df9d6215666978951aff099339 (diff)
downloadnixpkgs-cfcda0dc34e2851d06c7db41328648dc7d87763a.tar
nixpkgs-cfcda0dc34e2851d06c7db41328648dc7d87763a.tar.gz
nixpkgs-cfcda0dc34e2851d06c7db41328648dc7d87763a.tar.bz2
nixpkgs-cfcda0dc34e2851d06c7db41328648dc7d87763a.tar.lz
nixpkgs-cfcda0dc34e2851d06c7db41328648dc7d87763a.tar.xz
nixpkgs-cfcda0dc34e2851d06c7db41328648dc7d87763a.tar.zst
nixpkgs-cfcda0dc34e2851d06c7db41328648dc7d87763a.zip
cjose: init at 0.6.1
Diffstat (limited to 'pkgs/development/libraries/cjose')
-rw-r--r--pkgs/development/libraries/cjose/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/libraries/cjose/default.nix b/pkgs/development/libraries/cjose/default.nix
new file mode 100644
index 00000000000..57b5c6c1b8b
--- /dev/null
+++ b/pkgs/development/libraries/cjose/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, autoreconfHook
+, pkg-config
+, doxygen
+, check
+, jansson
+, openssl
+}:
+
+stdenv.mkDerivation rec {
+  pname = "cjose";
+  version = "0.6.1";
+
+  src = fetchFromGitHub {
+    owner = "cisco";
+    repo = "cjose";
+    rev = version;
+    sha256 = "1msyjwmylb5c7jc16ryx3xb9cdwx682ihsm0ni766y6dfwx8bkhp";
+  };
+
+  nativeBuildInputs = [ autoreconfHook pkg-config doxygen ];
+  buildInputs = [ jansson openssl ];
+  checkInputs = [ check ];
+
+  configureFlags = [
+    "--with-jansson=${jansson}"
+    "--with-openssl=${openssl.dev}"
+  ];
+
+  meta = with lib; {
+    homepage = "https://github.com/cisco/cjose";
+    changelog = "https://github.com/cisco/cjose/blob/${version}/CHANGELOG.md";
+    description = "C library for Javascript Object Signing and Encryption";
+    license = licenses.mit;
+    maintainers = with maintainers; [ midchildan ];
+    platforms = platforms.all;
+  };
+}