diff --git a/pkgs/development/ocaml-modules/raylib/default.nix b/pkgs/development/ocaml-modules/raylib/default.nix index b733001945dc..e6fbe711e7da 100644 --- a/pkgs/development/ocaml-modules/raylib/default.nix +++ b/pkgs/development/ocaml-modules/raylib/default.nix @@ -1,35 +1,43 @@ { lib, - fetchFromGitHub, + fetchurl, buildDunePackage, dune-configurator, ctypes, integers, patch, - gitUpdater, + libGL, + libX11, + libXcursor, + libXi, + libXinerama, + libXrandr, }: buildDunePackage rec { pname = "raylib"; version = "1.4.0"; - src = fetchFromGitHub { - owner = "tjammer"; - repo = "raylib-ocaml"; - tag = version; - hash = "sha256-Fh79YnmboQF5Kn3VF//JKLaIFKl8QJWVOqRexTzxF0U="; - # enable submodules for vendored raylib sources - fetchSubmodules = true; + src = fetchurl { + url = "https://github.com/tjammer/raylib-ocaml/releases/download/${version}/raylib-${version}.tbz"; + hash = "sha256-/SeKgQOrhsAgMNk6ODAZlopL0mL0lVfCTx1ugmV1P/s="; }; - propagatedBuildInputs = [ + buildInputs = [ dune-configurator - ctypes - integers patch ]; - passthru.updateScript = gitUpdater { }; + propagatedBuildInputs = [ + ctypes + integers + libGL + libX11 + libXcursor + libXi + libXinerama + libXrandr + ]; meta = { description = "OCaml bindings for Raylib (5.0.0)"; diff --git a/pkgs/development/ocaml-modules/raylib/raygui.nix b/pkgs/development/ocaml-modules/raylib/raygui.nix index baa2003683dd..f4971b1b1e37 100644 --- a/pkgs/development/ocaml-modules/raylib/raygui.nix +++ b/pkgs/development/ocaml-modules/raylib/raygui.nix @@ -1,12 +1,17 @@ { buildDunePackage, + fetchurl, raylib, }: -buildDunePackage { +buildDunePackage rec { pname = "raygui"; + version = "1.4.0"; - inherit (raylib) src version; + src = fetchurl { + url = "https://github.com/tjammer/raylib-ocaml/releases/download/${version}/raygui-${version}.tbz"; + hash = "sha256-PQcVTAQKeTPkOOHk5w3O3Tz0n7jLvkIo3Urvrk66eMs="; + }; propagatedBuildInputs = [ raylib