2020-11-19 06:36:41 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, bigarray-compat }:
|
2015-02-22 07:17:52 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "cstruct";
|
2020-11-19 06:36:41 +00:00
|
|
|
version = "5.0.0";
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.03";
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2017-11-28 01:11:15 +00:00
|
|
|
src = fetchurl {
|
2019-08-24 08:02:26 +01:00
|
|
|
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-v${version}.tbz";
|
2020-11-19 06:36:41 +00:00
|
|
|
sha256 = "1z403q2nkgz5x07j0ypy6q0mk2yxgqbp1jlqkngbajna7124x2pb";
|
2017-11-28 01:11:15 +00:00
|
|
|
};
|
2016-11-12 09:17:30 +00:00
|
|
|
|
2020-11-19 06:36:41 +00:00
|
|
|
propagatedBuildInputs = [ bigarray-compat ];
|
|
|
|
|
2017-11-28 01:11:15 +00:00
|
|
|
meta = {
|
|
|
|
description = "Access C-like structures directly from OCaml";
|
2019-08-24 08:02:26 +01:00
|
|
|
license = lib.licenses.isc;
|
2017-11-28 01:11:15 +00:00
|
|
|
homepage = "https://github.com/mirage/ocaml-cstruct";
|
2019-08-24 08:02:26 +01:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-11-28 01:11:15 +00:00
|
|
|
};
|
2015-02-22 07:17:52 +00:00
|
|
|
}
|