summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/x509
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-10-18 00:13:16 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-10-18 00:13:16 +0200
commitdd6a98b42a455eb93b5cb073fe4d548f8337e328 (patch)
tree8ac3c59a51b8da3b490f1fd8fdf5200728f88132 /pkgs/development/ocaml-modules/x509
parent270062dbb3a12d93aabe00f5d9a115d735cdaece (diff)
downloadnixpkgs-dd6a98b42a455eb93b5cb073fe4d548f8337e328.tar
nixpkgs-dd6a98b42a455eb93b5cb073fe4d548f8337e328.tar.gz
nixpkgs-dd6a98b42a455eb93b5cb073fe4d548f8337e328.tar.bz2
nixpkgs-dd6a98b42a455eb93b5cb073fe4d548f8337e328.tar.lz
nixpkgs-dd6a98b42a455eb93b5cb073fe4d548f8337e328.tar.xz
nixpkgs-dd6a98b42a455eb93b5cb073fe4d548f8337e328.tar.zst
nixpkgs-dd6a98b42a455eb93b5cb073fe4d548f8337e328.zip
ocaml-x509: init at 0.4.0
X.509 (RFC5280 and RFC6125) handling in OCaml.

Homepage: https://github.com/mirleft/ocaml-x509
Diffstat (limited to 'pkgs/development/ocaml-modules/x509')
-rw-r--r--pkgs/development/ocaml-modules/x509/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/x509/default.nix b/pkgs/development/ocaml-modules/x509/default.nix
new file mode 100644
index 00000000000..6fdbbc346d9
--- /dev/null
+++ b/pkgs/development/ocaml-modules/x509/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchzip, ocaml, findlib, asn1-combinators, nocrypto, ounit }:
+
+let version = "0.4.0"; in
+
+stdenv.mkDerivation {
+  name = "ocaml-x509-${version}";
+
+  src = fetchzip {
+    url = "https://github.com/mirleft/ocaml-x509/archive/${version}.tar.gz";
+    sha256 = "0z4c19y625ipx2anpq25pzly1fdi3cklhk130kriybrczvmd2b29";
+  };
+
+  buildInputs = [ ocaml findlib ounit ];
+  propagatedBuildInputs = [ asn1-combinators nocrypto ];
+
+  configureFlags = "--enable-tests";
+  doCheck = true;
+  checkTarget = "test";
+  createFindlibDestdir = true;
+
+  meta = {
+    homepage = https://github.com/mirleft/ocaml-x509;
+    description = "X509 (RFC5280) handling in OCaml";
+    platforms = ocaml.meta.platforms;
+    license = stdenv.lib.licenses.bsd2;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+  };
+}