ocamlPackages.cstruct: 5.0.0 → 6.0.0
This commit is contained in:
committed by
Vincent Laporte
parent
99bb24459d
commit
6a27377958
@@ -1,8 +1,8 @@
|
||||
{ lib, fetchurl, buildDunePackage, bigarray-compat }:
|
||||
{ lib, fetchurl, buildDunePackage, bigarray-compat, alcotest, ocaml }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "cstruct";
|
||||
version = "5.0.0";
|
||||
version = "6.0.0";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
@@ -10,11 +10,15 @@ buildDunePackage rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-v${version}.tbz";
|
||||
sha256 = "1z403q2nkgz5x07j0ypy6q0mk2yxgqbp1jlqkngbajna7124x2pb";
|
||||
sha256 = "0xi6cj85z033fqrqdkwac6gg07629vzdhx03c3lhiwwc4lpnv8bq";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ bigarray-compat ];
|
||||
|
||||
# alcotest isn't available for OCaml < 4.05 due to fmt
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
||||
checkInputs = [ alcotest ];
|
||||
|
||||
meta = {
|
||||
description = "Access C-like structures directly from OCaml";
|
||||
license = lib.licenses.isc;
|
||||
|
||||
Reference in New Issue
Block a user