fna3d: 25.02 -> 25.10
Upgrade FNA3D to version 25.10. 25.05 fixes CMake 4.0 compatibility. 25.03 builds against SDL3 by default. As I'm uncertain of whether this is a non-breaking change, I've opted to default to building against SDL2 still for nixpkgs (at least for now to get the CMake 4.0 incompatibility fixed). Other changes seem to be non-breaking. Diff: https://github.com/FNA-XNA/FNA3D/compare/25.02...25.10 Changelog: https://github.com/FNA-XNA/FNA3D/releases
This commit is contained in:
@@ -4,20 +4,26 @@
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
SDL2,
|
||||
sdl3,
|
||||
useSDL3 ? false,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fna3d";
|
||||
version = "25.02";
|
||||
version = "25.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FNA-XNA";
|
||||
repo = "FNA3D";
|
||||
tag = version;
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-0rRwIbOciPepo+ApvJiK5IyhMdq/4jsMlCSv0UeDETs=";
|
||||
hash = "sha256-Hbj1GGKSFaP2C7V0II6x6euxRDc/BYSK00cVsFMKGEw=";
|
||||
};
|
||||
|
||||
buildInputs = [ SDL2 ];
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SDL3" useSDL3)
|
||||
];
|
||||
buildInputs = if useSDL3 then [ sdl3 ] else [ SDL2 ];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
installPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user