nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
2
3stdenv.mkDerivation rec {
4 name = "ocaml${ocaml.version}-stdint-${version}";
5 version = "0.5.0";
6 src = fetchFromGitHub {
7 owner = "andrenth";
8 repo = "ocaml-stdint";
9 rev = version;
10 sha256 = "1xjzqq13m7cqrfwa6vcwxirm17w8bx025dgnjqjgd3k2lxfgd1j7";
11 };
12
13 buildInputs = [ ocaml findlib ocamlbuild ];
14 configurePhase = "ocaml setup.ml -configure --prefix $out";
15
16 createFindlibDestdir = true;
17
18 meta = {
19 description = "Various signed and unsigned integers for OCaml";
20 license = stdenv.lib.licenses.mit;
21 maintainers = [ stdenv.lib.maintainers.gebner ];
22 inherit (src.meta) homepage;
23 inherit (ocaml.meta) platforms;
24 };
25}