Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 ocaml, 6 findlib, 7 ocamlbuild, 8 topkg, 9 js_of_ocaml-compiler, 10 js_of_ocaml-toplevel, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "ocaml${ocaml.version}-brr"; 15 version = "0.0.7"; 16 src = fetchurl { 17 url = "https://erratique.ch/software/brr/releases/brr-${version}.tbz"; 18 hash = "sha256-rcWuW6avI/RJZNAlxKOsPSEtDQZ1hb51oKpSk3iG7oY="; 19 }; 20 buildInputs = [ 21 ocaml 22 findlib 23 ocamlbuild 24 topkg 25 ]; 26 propagatedBuildInputs = [ 27 js_of_ocaml-compiler 28 js_of_ocaml-toplevel 29 ]; 30 inherit (topkg) buildPhase installPhase; 31 32 meta = { 33 homepage = "https://erratique.ch/software/brr"; 34 description = "Toolkit for programming browsers in OCaml"; 35 license = lib.licenses.isc; 36 maintainers = [ lib.maintainers.vbgl ]; 37 inherit (ocaml.meta) platforms; 38 }; 39}