From 66b9602a2fb61cc4ed2181ba43476fcc1740ce96 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 25 Oct 2016 19:19:35 +0200 Subject: [PATCH] ocamlPackages.fmt: init at 0.8.0 fmt is an OCaml library of Format pretty-printer combinators. Homepage: http://erratique.ch/software/fmt --- .../development/ocaml-modules/fmt/default.nix | 26 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/ocaml-modules/fmt/default.nix diff --git a/pkgs/development/ocaml-modules/fmt/default.nix b/pkgs/development/ocaml-modules/fmt/default.nix new file mode 100644 index 00000000000..9994d156a4c --- /dev/null +++ b/pkgs/development/ocaml-modules/fmt/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, cmdliner }: + +stdenv.mkDerivation { + name = "ocaml${ocaml.version}-fmt-0.8.0"; + + src = fetchurl { + url = http://erratique.ch/software/fmt/releases/fmt-0.8.0.tbz; + sha256 = "16y7ibndnairb53j8a6qgipyqwjxncn4pl9jiw5bxjfjm59108px"; + }; + + unpackCmd = "tar xjf $src"; + + buildInputs = [ ocaml findlib ocamlbuild opam topkg cmdliner ]; + + inherit (topkg) buildPhase installPhase; + + createFindlibDestdir = true; + + meta = { + homepage = http://erratique.ch/software/fmt; + license = stdenv.lib.licenses.isc; + description = "OCaml Format pretty-printer combinators"; + inherit (ocaml.meta) platforms; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 391e2c80a57..46f1ce4b023 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -176,6 +176,8 @@ let fix = callPackage ../development/ocaml-modules/fix { }; + fmt = callPackage ../development/ocaml-modules/fmt { }; + fontconfig = callPackage ../development/ocaml-modules/fontconfig { inherit (pkgs) fontconfig; };