2018-05-28 23:33:00 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-19 06:17:09 +01:00
|
|
|
version = "2.0.0";
|
2018-05-28 23:33:00 +02:00
|
|
|
name = "ocaml${ocaml.version}-opam-file-format-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml";
|
|
|
|
repo = "opam-file-format";
|
|
|
|
rev = "${version}";
|
2018-11-19 06:17:09 +01:00
|
|
|
sha256 = "0fqb99asnair0043hhc8r158d6krv5nzvymd0xwycr5y72yrp0hv";
|
2018-05-28 23:33:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Parser and printer for the opam file syntax";
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|