depot/third_party/nixpkgs/pkgs/development/ocaml-modules/inifiles/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

31 lines
921 B
Nix

{ stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, ocaml_pcre }:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-inifiles";
version = "1.2";
src = fetchurl {
url = "mirror://ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_${version}.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 = lib.licenses.lgpl21Plus;
inherit (ocaml.meta) platforms;
};
}