From 7641c499ec84ae2b82a255d47c5bace27714677a Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 24 Nov 2025 21:29:35 +0100 Subject: [PATCH] =?UTF-8?q?ocamlPackages.graphics:=205.1.2=20=E2=86=92=205?= =?UTF-8?q?.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ocaml-modules/graphics/default.nix | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/pkgs/development/ocaml-modules/graphics/default.nix b/pkgs/development/ocaml-modules/graphics/default.nix index eab2c1b12ee6..f95f2bef0b11 100644 --- a/pkgs/development/ocaml-modules/graphics/default.nix +++ b/pkgs/development/ocaml-modules/graphics/default.nix @@ -1,29 +1,32 @@ { lib, - fetchurl, + fetchFromGitHub, buildDunePackage, dune-configurator, libX11, + libXft, }: -buildDunePackage rec { - +buildDunePackage (finalAttrs: { pname = "graphics"; - version = "5.1.2"; + version = "5.2.0"; - useDune2 = true; - - src = fetchurl { - url = "https://github.com/ocaml/graphics/releases/download/${version}/graphics-${version}.tbz"; - sha256 = "sha256-QA/YHSPxy0FGuWl5NCwkeXHdVPWHn/0vgOx80CEuMtQ="; + src = fetchFromGitHub { + owner = "ocaml"; + repo = "graphics"; + tag = finalAttrs.version; + hash = "sha256-0lpeZW1U//J5lH04x2ReBeug4s79KCyb5QYaiVgcBZI="; }; buildInputs = [ dune-configurator ]; - propagatedBuildInputs = [ libX11 ]; + propagatedBuildInputs = [ + libX11 + libXft + ]; meta = { homepage = "https://github.com/ocaml/graphics"; description = "Set of portable drawing primitives"; license = lib.licenses.lgpl2; }; -} +})