ocamlPackages.raylib: clean & fix

This commit is contained in:
Vincent Laporte 2025-04-24 08:49:29 +02:00
parent 4182d18564
commit 15cad86455
No known key found for this signature in database
2 changed files with 28 additions and 15 deletions

View file

@ -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)";

View file

@ -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