2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ocaml, findlib }:
|
2018-05-28 22:33:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-19 05:17:09 +00:00
|
|
|
version = "2.0.0";
|
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;
|
2018-11-19 05:17:09 +00:00
|
|
|
sha256 = "0fqb99asnair0043hhc8r158d6krv5nzvymd0xwycr5y72yrp0hv";
|
2018-05-28 22:33:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
|
|
|
|
|
2019-11-14 20:29:12 +00:00
|
|
|
patches = [ ./optional-static.patch ];
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|