ocamlPackages.bitstring: 3.1.1 → 4.0.1

ocamlPackages.ppx_bitsring: init at 4.0.1
This commit is contained in:
Vincent Laporte
2021-01-07 07:43:29 +01:00
committed by Vincent Laporte
parent 6e57c2b876
commit 331186b9ac
4 changed files with 33 additions and 7 deletions
@@ -1,20 +1,21 @@
{ stdenv, fetchFromGitHub, buildDunePackage, ppx_tools_versioned, ounit }:
{ lib, fetchFromGitHub, buildDunePackage, stdlib-shims }:
buildDunePackage rec {
pname = "bitstring";
version = "3.1.1";
version = "4.0.1";
useDune2 = true;
src = fetchFromGitHub {
owner = "xguerin";
repo = pname;
rev = "v${version}";
sha256 = "1ys8xx174jf8v5sm0lbxvzhdlcs5p0fhy1gvf58gad2g4gvgpvxc";
sha256 = "1z7jmgljvp52lvn3ml2cp6gssxqp4sikwyjf6ym97cycbcw0fjjm";
};
buildInputs = [ ppx_tools_versioned ounit ];
doCheck = true;
propagatedBuildInputs = [ stdlib-shims ];
meta = with stdenv.lib; {
meta = with 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";
license = licenses.lgpl21Plus;
@@ -0,0 +1,18 @@
{ lib, buildDunePackage, ocaml
, bitstring, ppxlib
, ounit
}:
buildDunePackage rec {
pname = "ppx_bitstring";
inherit (bitstring) version useDune2 src;
buildInputs = [ bitstring ppxlib ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ ounit ];
meta = bitstring.meta // {
description = "Bitstrings and bitstring matching for OCaml - PPX extension";
};
}