summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/stdint/default.nix
blob: 129f9dd7289f888b992282aec0c2498048057f90 (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
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild }:

stdenv.mkDerivation rec {
  name = "ocaml${ocaml.version}-stdint-${version}";
  version = "0.5.0";
  src = fetchFromGitHub {
    owner = "andrenth";
    repo = "ocaml-stdint";
    rev = version;
    sha256 = "1xjzqq13m7cqrfwa6vcwxirm17w8bx025dgnjqjgd3k2lxfgd1j7";
  };

  buildInputs = [ ocaml findlib ocamlbuild ];
  configurePhase = "ocaml setup.ml -configure --prefix $out";

  createFindlibDestdir = true;

  meta = {
    description = "Various signed and unsigned integers for OCaml";
    license = stdenv.lib.licenses.mit;
    maintainers = [ stdenv.lib.maintainers.gebner ];
    inherit (src.meta) homepage;
    inherit (ocaml.meta) platforms;
  };
}