git.iko.soy/typeable/nixpkgs
on master help sign in
ocaml-nocrypto: init at 0.5.1

Simplest possible crypto to support TLS Homepage: https://github.com/mirleft/ocaml-nocrypto

commitaf21739688ece64aed7dd49381be55a2a015d74c authorVincent Laporte <Vincent.Laporte@gmail.com> dateFri 9 Oct 2015, 21:23 (11 years ago) parent9c61b4f
2 files changed+35
pkgs/development/ocaml-modules/nocrypto/default.nix+33 pkgs/top-level/all-packages.nix+2
pkgs/development/ocaml-modules/nocrypto/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, fetchzip, ocaml, findlib, cstruct, type_conv, zarith, ounit }:
2+
3+let
4+ version = "0.5.1";
5+ ocaml_version = stdenv.lib.getVersion ocaml;
6+in
7+
8+assert stdenv.lib.versionAtLeast ocaml_version "4.01";
9+
10+stdenv.mkDerivation {
11+ name = "ocaml-nocrypto-${version}";
12+
13+ src = fetchzip {
14+ url = "https://github.com/mirleft/ocaml-nocrypto/archive/${version}.tar.gz";
15+ sha256 = "15gffvixk12ghsfra9amfszd473c8h188zfj03ngvblbdm0d80m0";
16+ };
17+
18+ buildInputs = [ ocaml findlib type_conv ounit ];
19+ propagatedBuildInputs = [ cstruct zarith ];
20+
21+ configureFlags = "--enable-tests";
22+ doCheck = true;
23+ checkTarget = "test";
24+ createFindlibDestdir = true;
25+
26+ meta = {
27+ homepage = https://github.com/mirleft/ocaml-nocrypto;
28+ description = "Simplest possible crypto to support TLS";
29+ platforms = ocaml.meta.platforms;
30+ license = stdenv.lib.licenses.bsd2;
31+ maintainers = with stdenv.lib.maintainers; [ vbgl ];
32+ };
33+}
pkgs/top-level/all-packages.nix+2
@@ -4475,6 +4475,8 @@ let
44754475
44764476 mlgmp = callPackage ../development/ocaml-modules/mlgmp { };
44774477
4478+ nocrypto = callPackage ../development/ocaml-modules/nocrypto { };
4479+
44784480 ocaml_batteries = callPackage ../development/ocaml-modules/batteries { };
44794481
44804482 comparelib = callPackage ../development/ocaml-modules/comparelib { };