Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 20 lines 617 B view raw
1{ stdenv, fetchurl, buildDunePackage, sexplib, ocplib-endian }: 2 3buildDunePackage rec { 4 pname = "cstruct"; 5 version = "3.1.1"; 6 7 src = fetchurl { 8 url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz"; 9 sha256 = "1x4jxsvd1lrfibnjdjrkfl7hqsc48rljnwbap6faanj9qhwwa6v2"; 10 }; 11 12 propagatedBuildInputs = [ sexplib ocplib-endian ]; 13 14 meta = { 15 description = "Access C-like structures directly from OCaml"; 16 license = stdenv.lib.licenses.isc; 17 homepage = "https://github.com/mirage/ocaml-cstruct"; 18 maintainers = [ stdenv.lib.maintainers.vbgl ]; 19 }; 20}