2020-03-15 18:14:32 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage, dune-configurator, libX11 }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
|
|
|
|
pname = "graphics";
|
2021-02-05 10:14:25 +01:00
|
|
|
version = "5.1.1";
|
2020-03-15 18:14:32 +01:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml/graphics/releases/download/${version}/graphics-${version}.tbz";
|
2021-02-05 10:14:25 +01:00
|
|
|
sha256 = "sha256-KGyD497ZKHA2xeXHezmh3P1zoSlre1h5N9zjkAFmMo4=";
|
2020-03-15 18:14:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
|
|
propagatedBuildInputs = [ libX11 ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/ocaml/graphics";
|
|
|
|
description = "A set of portable drawing primitives";
|
|
|
|
license = lib.licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|