Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 30 lines 884 B view raw
1{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }: 2 3lib.throwIfNot (lib.versionAtLeast ocaml.version "4.07") 4 "rresult is not available for OCaml ${ocaml.version}" 5 6stdenv.mkDerivation rec { 7 pname = "ocaml${ocaml.version}-rresult"; 8 version = "0.7.0"; 9 src = fetchurl { 10 url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz"; 11 sha256 = "sha256-Eap/W4NGDmBDHjFU4+MsBx1G4VHqV2DPJDd4Bb+XVUA="; 12 }; 13 14 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; 15 buildInputs = [ topkg ]; 16 17 propagatedBuildInputs = [ result ]; 18 19 strictDeps = true; 20 21 inherit (topkg) buildPhase installPhase; 22 23 meta = { 24 license = lib.licenses.isc; 25 homepage = "https://erratique.ch/software/rresult"; 26 description = "Result value combinators for OCaml"; 27 maintainers = [ lib.maintainers.vbgl ]; 28 inherit (ocaml.meta) platforms; 29 }; 30}