From 78f93c3de2549e6d15c40084b4eed3a34c14d467 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 23 Jan 2015 09:15:08 +0100 Subject: [PATCH] Adds ocaml-hex Mininal OCaml library providing hexadecimal converters. Homepage: https://github.com/mirage/ocaml-hex --- .../development/ocaml-modules/hex/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/ocaml-modules/hex/default.nix diff --git a/pkgs/development/ocaml-modules/hex/default.nix b/pkgs/development/ocaml-modules/hex/default.nix new file mode 100644 index 000000000000..1be3b4cbfb73 --- /dev/null +++ b/pkgs/development/ocaml-modules/hex/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchzip, ocaml, findlib }: + +let version = "0.1.0"; in + +stdenv.mkDerivation { + name = "ocaml-hex-${version}"; + + src = fetchzip { + url = "https://github.com/mirage/ocaml-hex/archive/${version}.tar.gz"; + sha256 = "1nna0v5wi1g8l9ywl43xda2lqbz3sa3ncpyg84bl9baxyfmw4p9n"; + }; + + buildInputs = [ ocaml findlib ]; + createFindlibDestdir = true; + + meta = { + description = "Mininal OCaml library providing hexadecimal converters"; + homepage = https://github.com/mirage/ocaml-hex; + license = stdenv.lib.licenses.isc; + maintainers = with stdenv.lib.maintainers; [ vbgl ]; + platforms = ocaml.meta.platforms; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2d59b88c5772..b22506c319bd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3785,6 +3785,8 @@ let gtktop = callPackage ../development/ocaml-modules/gtktop { }; + hex = callPackage ../development/ocaml-modules/hex { }; + js_of_ocaml = callPackage ../development/tools/ocaml/js_of_ocaml { }; jsonm = callPackage ../development/ocaml-modules/jsonm { };