From ad098ac026203cb8d024d7ac4f0f3fa6af87262b Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 8 Apr 2020 08:22:41 +0200 Subject: [PATCH] ocamlPackages.randomconv: init at 0.1.3 --- .../ocaml-modules/randomconv/default.nix | 21 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/ocaml-modules/randomconv/default.nix diff --git a/pkgs/development/ocaml-modules/randomconv/default.nix b/pkgs/development/ocaml-modules/randomconv/default.nix new file mode 100644 index 000000000000..7abb153b9be3 --- /dev/null +++ b/pkgs/development/ocaml-modules/randomconv/default.nix @@ -0,0 +1,21 @@ +{ lib, buildDunePackage, fetchurl, cstruct }: + +buildDunePackage rec { + pname = "randomconv"; + version = "0.1.3"; + + src = fetchurl { + url = "https://github.com/hannesm/randomconv/releases/download/v${version}/randomconv-v${version}.tbz"; + sha256 = "1iv3r0s5kqxs893b0d55f0r62k777haiahfkkvvfbqwgqsm6la4v"; + }; + + propagatedBuildInputs = [ cstruct ]; + + meta = { + homepage = "https://github.com/hannesm/randomconv"; + description = "Convert from random bytes to random native numbers"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + }; + +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index f3c7f4654f2e..e513b8619e48 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -829,6 +829,8 @@ let qtest = callPackage ../development/ocaml-modules/qtest { }; + randomconv = callPackage ../development/ocaml-modules/randomconv { }; + re = callPackage ../development/ocaml-modules/re { }; react = callPackage ../development/ocaml-modules/react { };