Skip to content

Commit

Permalink
ocamlPackages.ocf: init at 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thufschmitt authored and vbgl committed Mar 30, 2017
1 parent 401c284 commit 2f020cf
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/ocf/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ppx_tools, yojson }:

if stdenv.lib.versionOlder ocaml.version "4.03"
then throw "ocf not supported for ocaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocf-${version}";
version = "0.5.0";
src = fetchFromGitHub {
owner = "zoggy";
repo = "ocf";
rev = "release-${version}";
sha256 = "1fhq9l2nmr39hxzpavc0jssmba71nnmhsncdn4dsbh2ylv29w56y";
};

buildInputs = [ ocaml findlib ppx_tools ];
propagatedBuildInputs = [ yojson ];

createFindlibDestdir = true;

patches = [(fetchpatch {
url = "https://github.com/zoggy/ocf/commit/3a231c7a6c5e535a77c25e207af8952793436444.patch";
sha256 = "0nc8cggc5gxhch9amaz3s71lxs1xbgi7fs9p90cng04dsgr64xk5";
})
];
meta = with stdenv.lib; {
description = "OCaml library to read and write configuration options in JSON syntax";
homepage = "https://zoggy.github.io/ocf/";
license = licenses.lgpl3;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [ regnat ];
};
}

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

ocaml_text = callPackage ../development/ocaml-modules/ocaml-text { };

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

ocpBuild = callPackage ../development/tools/ocaml/ocp-build { };

ocpIndent = callPackage ../development/tools/ocaml/ocp-indent { };
Expand Down

0 comments on commit 2f020cf

Please sign in to comment.