diff options
author | regnat <rg@regnat.ovh> | 2017-03-23 08:40:21 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-03-30 01:23:30 +0000 |
commit | 2f020cf7c1aba4e2b02f55395f069e8072d75b68 (patch) | |
tree | 101c91fb12a24c5e3e2e4daaa4d1ca8e44b82e49 /pkgs/development/ocaml-modules/ocf | |
parent | 401c284af0571ae7a1937bf6ab9eb6b27bc1e61e (diff) | |
download | nixlib-2f020cf7c1aba4e2b02f55395f069e8072d75b68.tar nixlib-2f020cf7c1aba4e2b02f55395f069e8072d75b68.tar.gz nixlib-2f020cf7c1aba4e2b02f55395f069e8072d75b68.tar.bz2 nixlib-2f020cf7c1aba4e2b02f55395f069e8072d75b68.tar.lz nixlib-2f020cf7c1aba4e2b02f55395f069e8072d75b68.tar.xz nixlib-2f020cf7c1aba4e2b02f55395f069e8072d75b68.tar.zst nixlib-2f020cf7c1aba4e2b02f55395f069e8072d75b68.zip |
ocamlPackages.ocf: init at 0.5.0
Diffstat (limited to 'pkgs/development/ocaml-modules/ocf')
-rw-r--r-- | pkgs/development/ocaml-modules/ocf/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocf/default.nix b/pkgs/development/ocaml-modules/ocf/default.nix new file mode 100644 index 000000000000..11be8a13a575 --- /dev/null +++ b/pkgs/development/ocaml-modules/ocf/default.nix @@ -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 ]; + }; +} + |