Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 34 lines 905 B view raw
1{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg 2, faraday 3}: 4 5if lib.versionOlder ocaml.version "4.3" 6then throw "farfadet is not available for OCaml ${ocaml.version}" 7else 8 9stdenv.mkDerivation rec { 10 pname = "ocaml${ocaml.version}-farfadet"; 11 version = "0.3"; 12 13 src = fetchurl { 14 url = "https://github.com/oklm-wsh/Farfadet/releases/download/v${version}/farfadet-${version}.tbz"; 15 sha256 = "0nlafnp0pwx0n4aszpsk6nvcvqi9im306p4jhx70si7k3xprlr2j"; 16 }; 17 18 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; 19 buildInputs = [ topkg ]; 20 21 propagatedBuildInputs = [ faraday ]; 22 23 strictDeps = true; 24 25 inherit (topkg) buildPhase installPhase; 26 27 meta = { 28 description = "A printf-like for Faraday library"; 29 homepage = "https://github.com/oklm-wsh/Farfadet"; 30 license = lib.licenses.mit; 31 maintainers = [ lib.maintainers.vbgl ]; 32 inherit (ocaml.meta) platforms; 33 }; 34}