2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, ocaml_pcre }:
|
2017-03-21 18:12:06 +00:00
|
|
|
|
2021-11-09 19:42:54 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml${ocaml.version}-inifiles";
|
|
|
|
version = "1.2";
|
2017-03-21 18:12:06 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
src = fetchurl {
|
2021-11-09 19:42:54 +00:00
|
|
|
url = "mirror://ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_${version}.orig.tar.gz";
|
2021-01-21 00:24:35 +00:00
|
|
|
sha256 = "0jhzgiypmh6hwsv1zpiq77fi0cvcmwbiy5x0yg7mz6p3dh1dmkns";
|
|
|
|
};
|
2017-03-21 18:12:06 +00:00
|
|
|
|
2021-11-09 19:53:19 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocaml-inifiles/ocaml-inifiles.1.2/files/ocaml-inifiles.diff";
|
|
|
|
sha256 = "037kk3172s187w8vwsykdxlpklxzc7m7np57sapk499d8adzdgwn";
|
|
|
|
})
|
|
|
|
];
|
2017-03-21 18:12:06 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
2021-01-21 00:24:35 +00:00
|
|
|
propagatedBuildInputs = [ ocaml_pcre ];
|
2017-03-21 18:12:06 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
buildFlags = [ "all" "opt" ];
|
2017-03-21 18:12:06 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
createFindlibDestdir = true;
|
2017-03-21 18:12:06 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
meta = {
|
|
|
|
description = "A small OCaml library to read and write .ini files";
|
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
2017-03-21 18:12:06 +00:00
|
|
|
}
|