ocamlPackages.patch: 2.0.0 -> 3.0.0

ocamlPackages.ray{lib,gui}: fix with patch 3.0.0
This commit is contained in:
Kate 2025-07-18 16:28:13 +01:00 committed by Vincent Laporte
parent c388369f5f
commit 4ae8242fb8
3 changed files with 18 additions and 3 deletions

View File

@ -9,15 +9,15 @@
buildDunePackage rec { buildDunePackage rec {
pname = "patch"; pname = "patch";
version = "2.0.0"; version = "3.0.0";
minimalOCamlVersion = "4.03"; minimalOCamlVersion = "4.08";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hannesm"; owner = "hannesm";
repo = "patch"; repo = "patch";
tag = "v${version}"; tag = "v${version}";
hash = "sha256-xqcUZaKlbyXF2//MbCom7/pGA2ej6KHYI3rizXwoqTY="; hash = "sha256-WIleUxfGp8cvQHYAyRRI6S/MSP4u0BbEyAqlRxCb/To=";
}; };
checkInputs = [ checkInputs = [

View File

@ -1,6 +1,7 @@
{ {
lib, lib,
fetchurl, fetchurl,
fetchpatch,
buildDunePackage, buildDunePackage,
dune-configurator, dune-configurator,
ctypes, ctypes,
@ -23,6 +24,18 @@ buildDunePackage rec {
hash = "sha256-/SeKgQOrhsAgMNk6ODAZlopL0mL0lVfCTx1ugmV1P/s="; hash = "sha256-/SeKgQOrhsAgMNk6ODAZlopL0mL0lVfCTx1ugmV1P/s=";
}; };
patches = [
(fetchpatch {
name = "fix-build-with-patch-3.0.0.patch";
url = "https://github.com/tjammer/raylib-ocaml/commit/40e6fef44e3c39d4526806c4b830da77c4fe4bb8.patch";
excludes = [
"dune-project"
"raygui.opam"
];
hash = "sha256-MEZkkBgjL2iT6Av/s0tJCrW7+oyp9QD6sUbXEusCAWI=";
})
];
buildInputs = [ buildInputs = [
dune-configurator dune-configurator
patch patch

View File

@ -13,6 +13,8 @@ buildDunePackage rec {
hash = "sha256-PQcVTAQKeTPkOOHk5w3O3Tz0n7jLvkIo3Urvrk66eMs="; hash = "sha256-PQcVTAQKeTPkOOHk5w3O3Tz0n7jLvkIo3Urvrk66eMs=";
}; };
inherit (raylib) patches;
propagatedBuildInputs = [ propagatedBuildInputs = [
raylib raylib
]; ];