diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-02-12 23:11:17 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2018-02-19 18:55:31 +0100 |
commit | 2aeafe7ef47a27dd578045c9d290c1bd31b0ba25 (patch) | |
tree | bc10ff71d87736b3f1bdcc77947d760341cad1ff | |
parent | fd2f2bbe6f23408cf73507e40e7fea40485b0bd5 (diff) | |
download | nixlib-2aeafe7ef47a27dd578045c9d290c1bd31b0ba25.tar nixlib-2aeafe7ef47a27dd578045c9d290c1bd31b0ba25.tar.gz nixlib-2aeafe7ef47a27dd578045c9d290c1bd31b0ba25.tar.bz2 nixlib-2aeafe7ef47a27dd578045c9d290c1bd31b0ba25.tar.lz nixlib-2aeafe7ef47a27dd578045c9d290c1bd31b0ba25.tar.xz nixlib-2aeafe7ef47a27dd578045c9d290c1bd31b0ba25.tar.zst nixlib-2aeafe7ef47a27dd578045c9d290c1bd31b0ba25.zip |
ocamlPackages.bitv: init at 1.3
bitv is a bit vector library for OCaml. Homepage: https://github.com/backtracking/bitv
-rw-r--r-- | pkgs/development/ocaml-modules/bitv/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/bitv/default.nix b/pkgs/development/ocaml-modules/bitv/default.nix new file mode 100644 index 000000000000..359d83b4762a --- /dev/null +++ b/pkgs/development/ocaml-modules/bitv/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchzip, autoreconfHook, which, ocaml, findlib }: + +if !stdenv.lib.versionAtLeast ocaml.version "4.02" +then throw "bitv is not available for OCaml ${ocaml.version}" +else + +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-bitv-${version}"; + version = "1.3"; + + src = fetchzip { + url = "https://github.com/backtracking/bitv/archive/${version}.tar.gz"; + sha256 = "0vkh1w9fpi5m1sgiqg6r38j3fqglhdajmbyiyr91113lrpljm75i"; + }; + + buildInputs = [ autoreconfHook which ocaml findlib ]; + + createFindlibDestdir = true; + + meta = { + description = "A bit vector library for OCaml"; + license = stdenv.lib.licenses.lgpl21; + homepage = "https://github.com/backtracking/bitv"; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + inherit (ocaml.meta) platforms; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 1fffa3fa800b..10eb72da19eb 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -60,6 +60,8 @@ let bitstring = callPackage ../development/ocaml-modules/bitstring { }; + bitv = callPackage ../development/ocaml-modules/bitv { }; + bolt = callPackage ../development/ocaml-modules/bolt { }; bos = callPackage ../development/ocaml-modules/bos { }; |