Unverified Commit 6b8d38f9 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

ocamlPackages.raylib: clean & fix (#401338)

parents 12bf2b4d 15cad864
Loading
Loading
Loading
Loading
+21 −13
Original line number Diff line number Diff line
{
  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)";
+7 −2
Original line number Diff line number Diff line
{
  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