ocamlPackages.graphics: init at 5.1.0 for OCaml ≥ 4.09

This commit is contained in:
Vincent Laporte 2020-03-15 18:14:32 +01:00 committed by Vincent Laporte
parent 80a7615300
commit dd6d785d38
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{ lib, fetchurl, buildDunePackage, dune-configurator, libX11 }:
buildDunePackage rec {
pname = "graphics";
version = "5.1.0";
useDune2 = true;
src = fetchurl {
url = "https://github.com/ocaml/graphics/releases/download/${version}/graphics-${version}.tbz";
sha256 = "16z997mp0ccilaqqvmz3wp7vx0ghaf4ik9qklgd4piklcl1yv5n5";
};
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ libX11 ];
meta = {
homepage = "https://github.com/ocaml/graphics";
description = "A set of portable drawing primitives";
license = lib.licenses.lgpl2;
};
}

View File

@ -347,6 +347,11 @@ let
gmetadom = callPackage ../development/ocaml-modules/gmetadom { };
graphics =
if lib.versionOlder "4.09" ocaml.version
then callPackage ../development/ocaml-modules/graphics { }
else null;
graphql = callPackage ../development/ocaml-modules/graphql { };
graphql-cohttp = callPackage ../development/ocaml-modules/graphql/cohttp.nix { };