ocamlPackages.ocf: init at 0.5.0

authored by regnat and committed by Vincent Laporte 2f020cf7 401c284a

+36
+34
pkgs/development/ocaml-modules/ocf/default.nix
···
··· 1 + { stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ppx_tools, yojson }: 2 + 3 + if stdenv.lib.versionOlder ocaml.version "4.03" 4 + then throw "ocf not supported for ocaml ${ocaml.version}" 5 + else 6 + stdenv.mkDerivation rec { 7 + name = "ocf-${version}"; 8 + version = "0.5.0"; 9 + src = fetchFromGitHub { 10 + owner = "zoggy"; 11 + repo = "ocf"; 12 + rev = "release-${version}"; 13 + sha256 = "1fhq9l2nmr39hxzpavc0jssmba71nnmhsncdn4dsbh2ylv29w56y"; 14 + }; 15 + 16 + buildInputs = [ ocaml findlib ppx_tools ]; 17 + propagatedBuildInputs = [ yojson ]; 18 + 19 + createFindlibDestdir = true; 20 + 21 + patches = [(fetchpatch { 22 + url = "https://github.com/zoggy/ocf/commit/3a231c7a6c5e535a77c25e207af8952793436444.patch"; 23 + sha256 = "0nc8cggc5gxhch9amaz3s71lxs1xbgi7fs9p90cng04dsgr64xk5"; 24 + }) 25 + ]; 26 + meta = with stdenv.lib; { 27 + description = "OCaml library to read and write configuration options in JSON syntax"; 28 + homepage = "https://zoggy.github.io/ocf/"; 29 + license = licenses.lgpl3; 30 + platforms = ocaml.meta.platforms or []; 31 + maintainers = with maintainers; [ regnat ]; 32 + }; 33 + } 34 +
+2
pkgs/top-level/ocaml-packages.nix
··· 371 372 ocaml_text = callPackage ../development/ocaml-modules/ocaml-text { }; 373 374 ocpBuild = callPackage ../development/tools/ocaml/ocp-build { }; 375 376 ocpIndent = callPackage ../development/tools/ocaml/ocp-indent { };
··· 371 372 ocaml_text = callPackage ../development/ocaml-modules/ocaml-text { }; 373 374 + ocf = callPackage ../development/ocaml-modules/ocf { }; 375 + 376 ocpBuild = callPackage ../development/tools/ocaml/ocp-build { }; 377 378 ocpIndent = callPackage ../development/tools/ocaml/ocp-indent { };