depot/third_party/nixpkgs/pkgs/development/ocaml-modules/cstruct/default.nix
Default email cf3f6e7a7d Project import generated by Copybara.
GitOrigin-RevId: 24eb3f87fc610f18de7076aee7c5a84ac5591e3e
2020-11-30 09:33:03 +01:00

24 lines
641 B
Nix

{ lib, fetchurl, buildDunePackage, bigarray-compat }:
buildDunePackage rec {
pname = "cstruct";
version = "5.0.0";
useDune2 = true;
minimumOCamlVersion = "4.03";
src = fetchurl {
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-v${version}.tbz";
sha256 = "1z403q2nkgz5x07j0ypy6q0mk2yxgqbp1jlqkngbajna7124x2pb";
};
propagatedBuildInputs = [ bigarray-compat ];
meta = {
description = "Access C-like structures directly from OCaml";
license = lib.licenses.isc;
homepage = "https://github.com/mirage/ocaml-cstruct";
maintainers = [ lib.maintainers.vbgl ];
};
}