Skip to content

Commit

Permalink
ocamlPackages.inifiles: init at 1.2
Browse files Browse the repository at this point in the history
inifiles is a library to read and write .ini files
  • Loading branch information
vbgl committed Mar 21, 2017
1 parent a7732d6 commit f61ead6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/development/ocaml-modules/inifiles/default.nix
@@ -0,0 +1,28 @@
{ stdenv, fetchurl, fetchpatch, ocaml, findlib, ocaml_pcre }:

stdenv.mkDerivation {
name = "ocaml${ocaml.version}-inifiles-1.2";

src = fetchurl {
url = http://archive.ubuntu.com/ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_1.2.orig.tar.gz;
sha256 = "0jhzgiypmh6hwsv1zpiq77fi0cvcmwbiy5x0yg7mz6p3dh1dmkns";
};

patches = [ (fetchpatch {
url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocaml-inifiles/ocaml-inifiles.1.2/files/ocaml-inifiles.diff;
sha256 = "037kk3172s187w8vwsykdxlpklxzc7m7np57sapk499d8adzdgwn";
})];

buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ ocaml_pcre ];

buildFlags = [ "all" "opt" ];

createFindlibDestdir = true;

meta = {
description = "A small OCaml library to read and write .ini files";
license = stdenv.lib.licenses.lgpl21Plus;
inherit (ocaml.meta) platforms;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Expand Up @@ -233,6 +233,8 @@ let

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

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

jingoo = callPackage ../development/ocaml-modules/jingoo {
batteries = ocaml_batteries;
pcre = ocaml_pcre;
Expand Down

0 comments on commit f61ead6

Please sign in to comment.