Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at github-to-sqlite-beautifulsoup4 23 lines 780 B view raw
1{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg }: 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.2"; 9 src = fetchurl { 10 url = "https://erratique.ch/software/note/releases/note-${version}.tbz"; 11 hash = "sha256-b35XcaDUXQLqwkNfsJKX5A1q1pAhw/mgdwyOdacZiiY="; 12 }; 13 buildInputs = [ ocaml findlib ocamlbuild topkg ]; 14 inherit (topkg) buildPhase installPhase; 15 16 meta = { 17 homepage = "https://erratique.ch/software/note"; 18 description = "An OCaml module for functional reactive programming"; 19 license = lib.licenses.isc; 20 maintainers = [ lib.maintainers.vbgl ]; 21 inherit (ocaml.meta) platforms; 22 }; 23}