summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/graphics/default.nix
blob: 38db74fc9faf87e57c5c8c4571cb24cb3c8aaa57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, fetchurl, buildDunePackage, dune-configurator, libX11 }:

buildDunePackage rec {

  pname = "graphics";
  version = "5.1.2";

  useDune2 = true;

  src = fetchurl {
    url = "https://github.com/ocaml/graphics/releases/download/${version}/graphics-${version}.tbz";
    sha256 = "sha256-QA/YHSPxy0FGuWl5NCwkeXHdVPWHn/0vgOx80CEuMtQ=";
  };

  buildInputs = [ dune-configurator ];
  propagatedBuildInputs = [ libX11 ];

  meta = {
    homepage = "https://github.com/ocaml/graphics";
    description = "A set of portable drawing primitives";
    license = lib.licenses.lgpl2;
  };
}