ocamlPackages.owl: fix for GCC 15 (#479939)

This commit is contained in:
Aleksana
2026-01-18 02:59:00 +00:00
committed by GitHub
@@ -2,17 +2,27 @@
lib,
buildDunePackage,
fetchurl,
fetchpatch,
applyPatches,
}:
buildDunePackage rec {
buildDunePackage (finalAttrs: {
pname = "owl-base";
version = "1.2";
duneVersion = "3";
src = applyPatches {
src = fetchurl {
url = "https://github.com/owlbarn/owl/releases/download/${finalAttrs.version}/owl-${finalAttrs.version}.tbz";
hash = "sha256-OBei5DkZIsiiIltOM8qV2mgJJGmU5r8pGjAMgtjKxsU=";
};
src = fetchurl {
url = "https://github.com/owlbarn/owl/releases/download/${version}/owl-${version}.tbz";
hash = "sha256-OBei5DkZIsiiIltOM8qV2mgJJGmU5r8pGjAMgtjKxsU=";
patches = [
# Compatibility with GCC 15
(fetchpatch {
url = "https://github.com/owlbarn/owl/commit/3e66ccb0b1d21b73fa703f3d3f416ec0107860a4.patch";
hash = "sha256-0bV0ogTvtDoO8kEvE5QcJFRWqOJ1qiXGjXY9Ekp30M0=";
})
];
};
minimalOCamlVersion = "4.10";
@@ -25,4 +35,4 @@ buildDunePackage rec {
maintainers = [ lib.maintainers.bcdarwin ];
license = lib.licenses.mit;
};
}
})