Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 25 lines 821 B view raw
1{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, brr }: 2 3lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08") 4 "note is not available for OCaml ${ocaml.version}" 5 6stdenv.mkDerivation rec { 7 pname = "ocaml${ocaml.version}-note"; 8 version = "0.0.3"; 9 src = fetchurl { 10 url = "https://erratique.ch/software/note/releases/note-${version}.tbz"; 11 hash = "sha256-ZZOvCnyz7UWzFtGFI1uC0ZApzyylgZYM/HYIXGVXY2k="; 12 }; 13 buildInputs = [ ocaml findlib ocamlbuild topkg ]; 14 inherit (topkg) buildPhase installPhase; 15 16 propagatedBuildInputs = [ brr ]; 17 18 meta = { 19 homepage = "https://erratique.ch/software/note"; 20 description = "An OCaml module for functional reactive programming"; 21 license = lib.licenses.isc; 22 maintainers = [ lib.maintainers.vbgl ]; 23 inherit (ocaml.meta) platforms; 24 }; 25}