From 2aeafe7ef47a27dd578045c9d290c1bd31b0ba25 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 12 Feb 2018 23:11:17 +0000 Subject: ocamlPackages.bitv: init at 1.3 bitv is a bit vector library for OCaml. Homepage: https://github.com/backtracking/bitv --- pkgs/development/ocaml-modules/bitv/default.nix | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/development/ocaml-modules/bitv/default.nix (limited to 'pkgs/development/ocaml-modules') 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; + }; +} -- cgit 1.4.1