From c53824f13472d91cd7087e965976876725164e66 Mon Sep 17 00:00:00 2001 From: divoplade Date: Wed, 30 Dec 2020 19:06:57 +0100 Subject: [PATCH 4/5] gnu: Add ocaml-graphics --- gnu/packages/ocaml.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 828dd6ff73..353394e4d4 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -6148,3 +6148,32 @@ provides support to program with time varying values: declarative events and signals. React doesn't define any primitive event or signal, it lets the client chooses the concrete timeline.") (license license:lgpl2.1+))) + +(define-public ocaml-graphics + (package + (name "ocaml-graphics") + (version "5.1.0") + (home-page "https://github.com/ocaml/graphics") + (source + (origin + (method git-fetch) + (uri (git-reference + (url (string-append home-page ".git")) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ilw5r1lpy88fpfcpifxxbdg74f468jb5xhimw92iwmr410gnqp2")))) + (build-system dune-build-system) + (propagated-inputs + `(("dune-configurator" ,dune-configurator) + ("libx11" ,libx11) + ("pkg-config" ,pkg-config))) + (synopsis "The OCaml graphics library") + (description + "The graphics library provides a set of portable drawing +primitives. Drawing takes place in a separate window that is created +when Graphics.open_graph is called. + +This library used to be distributed with OCaml up to OCaml 4.08.") + (license license:lgpl2.1+))) -- 2.29.2