nixpkgs-suyu/pkgs/development/ocaml-modules/cstruct/default.nix

21 lines
617 B
Nix
Raw Normal View History

{ stdenv, fetchurl, buildDunePackage, sexplib, ocplib-endian }:
buildDunePackage rec {
pname = "cstruct";
version = "3.1.1";
2017-11-28 02:11:15 +01:00
src = fetchurl {
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz";
sha256 = "1x4jxsvd1lrfibnjdjrkfl7hqsc48rljnwbap6faanj9qhwwa6v2";
2017-11-28 02:11:15 +01:00
};
2017-11-28 02:11:15 +01:00
propagatedBuildInputs = [ sexplib ocplib-endian ];
2017-11-28 02:11:15 +01: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 ];
};
}