eacc74dff9
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ocaml4.05.0-cstruct/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 3.1.1 with grep in /nix/store/5c95avaixqmphvir48h0c8njns9f36ib-ocaml4.05.0-cstruct-3.1.1 - directory tree listing: https://gist.github.com/202a8dc3e8f2f39f90c4dd1db40e3634
29 lines
856 B
Nix
29 lines
856 B
Nix
{ stdenv, fetchurl, ocaml, jbuilder, findlib, sexplib, ocplib-endian }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-cstruct-${version}";
|
|
version = "3.1.1";
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz";
|
|
sha256 = "1x4jxsvd1lrfibnjdjrkfl7hqsc48rljnwbap6faanj9qhwwa6v2";
|
|
};
|
|
|
|
unpackCmd = "tar -xjf $curSrc";
|
|
|
|
buildInputs = [ ocaml jbuilder findlib ];
|
|
|
|
propagatedBuildInputs = [ sexplib ocplib-endian ];
|
|
|
|
buildPhase = "jbuilder build -p cstruct";
|
|
|
|
inherit (jbuilder) installPhase;
|
|
|
|
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 ];
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|