ocamlPackages.graphics: init at 5.1.0 for OCaml ≥ 4.09
This commit is contained in:
parent
80a7615300
commit
dd6d785d38
23
pkgs/development/ocaml-modules/graphics/default.nix
Normal file
23
pkgs/development/ocaml-modules/graphics/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -347,6 +347,11 @@ let
|
|||||||
|
|
||||||
gmetadom = callPackage ../development/ocaml-modules/gmetadom { };
|
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 = callPackage ../development/ocaml-modules/graphql { };
|
||||||
|
|
||||||
graphql-cohttp = callPackage ../development/ocaml-modules/graphql/cohttp.nix { };
|
graphql-cohttp = callPackage ../development/ocaml-modules/graphql/cohttp.nix { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user