Skip to content

Commit

Permalink
ocamlPackages.farfadet: init at 0.2
Browse files Browse the repository at this point in the history
Farfadet is a printf-like for Faraday library.

Homepage: https://github.com/oklm-wsh/Farfadet
  • Loading branch information
vbgl committed Dec 15, 2017
1 parent 3582a97 commit 8a5d33e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/development/ocaml-modules/farfadet/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ 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.2";

src = fetchurl {
url = "https://github.com/oklm-wsh/Farfadet/releases/download/v${version}/farfadet-${version}.tbz";
sha256 = "06wvd57c8khpq0c2hvm15zng269zvabsw1lcaqphqdcckl67nsxr";
};

unpackCmd = "tar -xjf $curSrc";

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;
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ let

faraday = callPackage ../development/ocaml-modules/faraday { };

farfadet = callPackage ../development/ocaml-modules/farfadet { };

fieldslib_p4 = callPackage ../development/ocaml-modules/fieldslib { };

fileutils = callPackage ../development/ocaml-modules/fileutils { };
Expand Down

0 comments on commit 8a5d33e

Please sign in to comment.