blob: fa7bf6a587f0bd4cb0c258c96bda464c32b1bca7 (
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
25
26
27
28
29
30
31
32
33
34
35
|
{ lib
, ocaml
, fetchFromGitHub
, buildDunePackage
, dune-configurator
, integers
, bigarray-compat
, ounit2
}:
buildDunePackage rec {
pname = "ctypes";
version = "0.22.0";
src = fetchFromGitHub {
owner = "ocamllabs";
repo = "ocaml-ctypes";
rev = version;
hash = "sha256-xgDKupQuakjHTbjoap/r2aAjNQUpH9K4HmeLbbgw1x4=";
};
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ integers bigarray-compat ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ ounit2 ];
meta = with lib; {
homepage = "https://github.com/ocamllabs/ocaml-ctypes";
description = "Library for binding to C libraries using pure OCaml";
license = licenses.mit;
maintainers = [ maintainers.ericbmerritt ];
};
}
|