1 { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg
5 if lib.versionOlder ocaml.version "4.3"
6 then throw "farfadet is not available for OCaml ${ocaml.version}"
9 stdenv.mkDerivation rec {
10 pname = "ocaml${ocaml.version}-farfadet";
14 url = "https://github.com/oklm-wsh/Farfadet/releases/download/v${version}/farfadet-${version}.tbz";
15 sha256 = "0nlafnp0pwx0n4aszpsk6nvcvqi9im306p4jhx70si7k3xprlr2j";
18 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
19 buildInputs = [ topkg ];
21 propagatedBuildInputs = [ faraday ];
25 inherit (topkg) buildPhase installPhase;
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;