Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 25 lines 716 B view raw
1{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild }: 2 3stdenv.mkDerivation rec { 4 name = "ocaml${ocaml.version}-stdint-${version}"; 5 version = "0.3.0"; 6 src = fetchFromGitHub { 7 owner = "andrenth"; 8 repo = "ocaml-stdint"; 9 rev = version; 10 sha256 = "18nh23yx4ghgq7mjf4mdyq8kj1fdw5d0abw919s8n4mv21cmpwia"; 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}