summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocplib-endian/default.nix
blob: 1e657fce8dd11a8a069a998b8554ab1383eeea11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildDunePackage, fetchFromGitHub, cppo }:

buildDunePackage rec {
  version = "1.2";
  pname = "ocplib-endian";

  src = fetchFromGitHub {
    owner = "OCamlPro";
    repo = "ocplib-endian";
    rev = version;
    sha256 = "sha256-THTlhOfXAPaqTt1qBkht+D67bw6M175QLvXoUMgjks4=";
  };

  minimalOCamlVersion = "4.03";

  nativeBuildInputs = [ cppo ];

  meta = with lib; {
    description = "Optimised functions to read and write int16/32/64";
    homepage = "https://github.com/OCamlPro/ocplib-endian";
    license = licenses.lgpl21;
    maintainers = with maintainers; [ vbgl ];
  };
}