2018-11-05 10:21:46 +00:00
|
|
|
{ stdenv, fetchurl, buildDunePackage, sexplib, ocplib-endian }:
|
2015-02-22 07:17:52 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "cstruct";
|
2018-03-31 06:25:21 +01:00
|
|
|
version = "3.1.1";
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2017-11-28 01:11:15 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz";
|
2018-03-31 06:25:21 +01:00
|
|
|
sha256 = "1x4jxsvd1lrfibnjdjrkfl7hqsc48rljnwbap6faanj9qhwwa6v2";
|
2017-11-28 01:11:15 +00:00
|
|
|
};
|
2016-11-12 09:17:30 +00:00
|
|
|
|
2017-11-28 01:11:15 +00:00
|
|
|
propagatedBuildInputs = [ sexplib ocplib-endian ];
|
2015-02-22 07:17:52 +00:00
|
|
|
|
2017-11-28 01:11:15 +00:00
|
|
|
meta = {
|
|
|
|
description = "Access C-like structures directly from OCaml";
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
homepage = "https://github.com/mirage/ocaml-cstruct";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
};
|
2015-02-22 07:17:52 +00:00
|
|
|
}
|