3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/bitstring/default.nix

33 lines
893 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
, ppx_tools_versioned
, ounit
}:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-bitstring-${version}";
version = "3.0.0";
src = fetchFromGitHub {
owner = "xguerin";
repo = "bitstring";
rev = "v${version}";
sha256 = "0r49qax7as48jgknzaq6p9rbpmrvnmlic713wzz5bj60j5h0396f";
};
buildInputs = [ ocaml findlib jbuilder ppx_tools_versioned ounit ];
buildPhase = "jbuilder build";
doCheck = true;
checkPhase = "jbuilder runtest";
inherit (jbuilder) installPhase;
meta = with stdenv.lib; {
description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";
homepage = https://github.com/xguerin/bitstring;
inherit (ocaml.meta) platforms;
license = licenses.lgpl21Plus;
maintainers = [ maintainers.maurer ];
};
}