summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/nocrypto
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-10-09 21:23:06 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-10-09 21:23:06 +0200
commitaf21739688ece64aed7dd49381be55a2a015d74c (patch)
tree08b2aa0d5ebda9b3c7fa1e246a6ede122a3a68a8 /pkgs/development/ocaml-modules/nocrypto
parent9c61b4fe4dad3e640d675943fd4c113d3ddcb310 (diff)
downloadnixpkgs-af21739688ece64aed7dd49381be55a2a015d74c.tar
nixpkgs-af21739688ece64aed7dd49381be55a2a015d74c.tar.gz
nixpkgs-af21739688ece64aed7dd49381be55a2a015d74c.tar.bz2
nixpkgs-af21739688ece64aed7dd49381be55a2a015d74c.tar.lz
nixpkgs-af21739688ece64aed7dd49381be55a2a015d74c.tar.xz
nixpkgs-af21739688ece64aed7dd49381be55a2a015d74c.tar.zst
nixpkgs-af21739688ece64aed7dd49381be55a2a015d74c.zip
ocaml-nocrypto: init at 0.5.1
Simplest possible crypto to support TLS

Homepage: https://github.com/mirleft/ocaml-nocrypto
Diffstat (limited to 'pkgs/development/ocaml-modules/nocrypto')
-rw-r--r--pkgs/development/ocaml-modules/nocrypto/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/nocrypto/default.nix b/pkgs/development/ocaml-modules/nocrypto/default.nix
new file mode 100644
index 00000000000..a5d73839cb2
--- /dev/null
+++ b/pkgs/development/ocaml-modules/nocrypto/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchzip, ocaml, findlib, cstruct, type_conv, zarith, ounit }:
+
+let
+  version = "0.5.1";
+  ocaml_version = stdenv.lib.getVersion ocaml;
+in
+
+assert stdenv.lib.versionAtLeast ocaml_version "4.01";
+
+stdenv.mkDerivation {
+  name = "ocaml-nocrypto-${version}";
+
+  src = fetchzip {
+    url = "https://github.com/mirleft/ocaml-nocrypto/archive/${version}.tar.gz";
+    sha256 = "15gffvixk12ghsfra9amfszd473c8h188zfj03ngvblbdm0d80m0";
+  };
+
+  buildInputs = [ ocaml findlib type_conv ounit ];
+  propagatedBuildInputs = [ cstruct zarith ];
+
+  configureFlags = "--enable-tests";
+  doCheck = true;
+  checkTarget = "test";
+  createFindlibDestdir = true;
+
+  meta = {
+    homepage = https://github.com/mirleft/ocaml-nocrypto;
+    description = "Simplest possible crypto to support TLS";
+    platforms = ocaml.meta.platforms;
+    license = stdenv.lib.licenses.bsd2;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+  };
+}