2019-03-26 10:04:59 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, dune }:
|
2017-10-02 11:18:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-26 10:04:59 +00:00
|
|
|
pname = "stdint";
|
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
|
|
version = "0.5.1";
|
2017-10-02 11:18:35 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andrenth";
|
|
|
|
repo = "ocaml-stdint";
|
|
|
|
rev = version;
|
2019-03-26 10:04:59 +00:00
|
|
|
sha256 = "0z2z77m3clna9m9k0f8fd1400cdlglvy1kr893qs3907b3v0c057";
|
2017-10-02 11:18:35 +01:00
|
|
|
};
|
|
|
|
|
2019-03-26 10:04:59 +00:00
|
|
|
buildInputs = [ ocaml findlib dune ];
|
2017-10-02 11:18:35 +01:00
|
|
|
|
2019-03-26 10:04:59 +00:00
|
|
|
buildPhase = "dune build -p ${pname}";
|
|
|
|
inherit (dune) installPhase;
|
2017-10-02 11:18:35 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|