mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
2cde1a89b6
ocamlPackages.faraday: 0.5.0 -> 0.7.0
32 lines
879 B
Nix
32 lines
879 B
Nix
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg
|
|
, faraday
|
|
}:
|
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4.3"
|
|
then throw "farfadet is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-farfadet-${version}";
|
|
version = "0.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/oklm-wsh/Farfadet/releases/download/v${version}/farfadet-${version}.tbz";
|
|
sha256 = "0nlafnp0pwx0n4aszpsk6nvcvqi9im306p4jhx70si7k3xprlr2j";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
|
|
|
propagatedBuildInputs = [ faraday ];
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
meta = {
|
|
description = "A printf-like for Faraday library";
|
|
homepage = "https://github.com/oklm-wsh/Farfadet";
|
|
license = stdenv.lib.licenses.mit;
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|