depot/third_party/nixpkgs/pkgs/development/ocaml-modules/ocplib-endian/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

24 lines
715 B
Nix

{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, cppo }:
let version = "1.0"; in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-ocplib-endian-${version}";
src = fetchzip {
url = "https://github.com/OCamlPro/ocplib-endian/archive/${version}.tar.gz";
sha256 = "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw";
};
buildInputs = [ ocaml findlib ocamlbuild cppo ];
createFindlibDestdir = true;
meta = {
description = "Optimised functions to read and write int16/32/64";
homepage = "https://github.com/OCamlPro/ocplib-endian";
license = stdenv.lib.licenses.lgpl21;
platforms = ocaml.meta.platforms or [];
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}