1 { stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, ocaml_pcre }:
3 stdenv.mkDerivation rec {
4 pname = "ocaml${ocaml.version}-inifiles";
8 url = "mirror://ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_${version}.orig.tar.gz";
9 sha256 = "0jhzgiypmh6hwsv1zpiq77fi0cvcmwbiy5x0yg7mz6p3dh1dmkns";
14 url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocaml-inifiles/ocaml-inifiles.1.2/files/ocaml-inifiles.diff";
15 sha256 = "037kk3172s187w8vwsykdxlpklxzc7m7np57sapk499d8adzdgwn";
20 substituteInPlace inifiles.ml --replace 'String.lowercase ' 'String.lowercase_ascii '
23 nativeBuildInputs = [ ocaml findlib ];
24 propagatedBuildInputs = [ ocaml_pcre ];
28 buildFlags = [ "all" "opt" ];
30 createFindlibDestdir = true;
33 description = "A small OCaml library to read and write .ini files";
34 license = lib.licenses.lgpl21Plus;
35 inherit (ocaml.meta) platforms;