2020-12-06 16:48:18 +00:00
|
|
|
{ stdenv, lib, fetchpatch, fetchFromGitHub, ocaml, findlib }:
|
2018-05-28 22:33:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-06 16:48:18 +00:00
|
|
|
version = "2.1.2";
|
2018-05-28 22:33:00 +01:00
|
|
|
name = "ocaml${ocaml.version}-opam-file-format-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml";
|
|
|
|
repo = "opam-file-format";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2020-12-06 16:48:18 +00:00
|
|
|
sha256 = "19xppn2s3yjid8jc1wh8gdf5mgmlpzby2cf2slmnbyrgln3vj6i2";
|
2018-05-28 22:33:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
|
|
|
|
|
2020-12-06 16:48:18 +00:00
|
|
|
patches = [
|
|
|
|
./optional-static.patch
|
|
|
|
# fix no implementation error for OpamParserTypes
|
|
|
|
# can be removed at next release presumably
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/ocaml/opam-file-format/pull/41/commits/2a9a92ec334e0bf2adf8d2b4c1b83f1f9f68df8f.patch";
|
|
|
|
sha256 = "090nl7yciyyidmbjfryw3wyx7srh6flnrr4zgyhv4kvjsvq944y2";
|
|
|
|
})
|
|
|
|
];
|
2019-11-14 20:29:12 +00:00
|
|
|
|
2018-05-28 22:33:00 +01:00
|
|
|
meta = {
|
|
|
|
description = "Parser and printer for the opam file syntax";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2018-05-28 22:33:00 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|