ocamlPackages.cstruct: 4.0.0 → 5.0.0
This commit is contained in:
parent
4d47330bef
commit
4a1ff5b3ce
@ -1,14 +1,20 @@
|
|||||||
{ lib, fetchurl, buildDunePackage }:
|
{ lib, fetchurl, buildDunePackage, bigarray-compat }:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "cstruct";
|
pname = "cstruct";
|
||||||
version = "4.0.0";
|
version = "5.0.0";
|
||||||
|
|
||||||
|
useDune2 = true;
|
||||||
|
|
||||||
|
minimumOCamlVersion = "4.03";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-v${version}.tbz";
|
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-v${version}.tbz";
|
||||||
sha256 = "1q4fsc2m6d96yf42g3wb3gcnhpnxw800df5mh3yr25pprj8y4m1a";
|
sha256 = "1z403q2nkgz5x07j0ypy6q0mk2yxgqbp1jlqkngbajna7124x2pb";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ bigarray-compat ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Access C-like structures directly from OCaml";
|
description = "Access C-like structures directly from OCaml";
|
||||||
license = lib.licenses.isc;
|
license = lib.licenses.isc;
|
||||||
|
@ -6,7 +6,7 @@ else
|
|||||||
|
|
||||||
buildDunePackage {
|
buildDunePackage {
|
||||||
pname = "cstruct-lwt";
|
pname = "cstruct-lwt";
|
||||||
inherit (cstruct) version src meta;
|
inherit (cstruct) version src useDune2 meta;
|
||||||
|
|
||||||
minimumOCamlVersion = "4.02";
|
minimumOCamlVersion = "4.02";
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildDunePackage, cstruct, sexplib, ppx_tools_versioned }:
|
{ lib, buildDunePackage, cstruct, sexplib, ppx_tools_versioned, ppxlib }:
|
||||||
|
|
||||||
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
||||||
then cstruct
|
then cstruct
|
||||||
@ -6,9 +6,9 @@ else
|
|||||||
|
|
||||||
buildDunePackage {
|
buildDunePackage {
|
||||||
pname = "ppx_cstruct";
|
pname = "ppx_cstruct";
|
||||||
inherit (cstruct) version src meta;
|
inherit (cstruct) version src useDune2 meta;
|
||||||
|
|
||||||
minimumOCamlVersion = "4.03";
|
minimumOCamlVersion = "4.03";
|
||||||
|
|
||||||
propagatedBuildInputs = [ cstruct ppx_tools_versioned sexplib ];
|
propagatedBuildInputs = [ cstruct ppx_tools_versioned ppxlib sexplib ];
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ else
|
|||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "cstruct-sexp";
|
pname = "cstruct-sexp";
|
||||||
inherit (cstruct) version src meta;
|
inherit (cstruct) version src useDune2 meta;
|
||||||
|
|
||||||
doCheck = lib.versionAtLeast ocaml.version "4.03";
|
doCheck = lib.versionAtLeast ocaml.version "4.03";
|
||||||
checkInputs = lib.optional doCheck alcotest;
|
checkInputs = lib.optional doCheck alcotest;
|
||||||
|
@ -6,7 +6,7 @@ else
|
|||||||
|
|
||||||
buildDunePackage {
|
buildDunePackage {
|
||||||
pname = "cstruct-unix";
|
pname = "cstruct-unix";
|
||||||
inherit (cstruct) version src meta;
|
inherit (cstruct) version src useDune2 meta;
|
||||||
|
|
||||||
minimumOCamlVersion = "4.06";
|
minimumOCamlVersion = "4.06";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user