nuked-md: Fetch patch for missing include on Darwin

This commit is contained in:
OPNA2608 2024-01-24 01:37:08 +01:00
parent 4a4f68c095
commit d4397100e9

View File

@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, gitUpdater
, cmake
, SDL2
@ -17,6 +18,15 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-Pe+TSu9FBUhxtACq+6jMbrUxiwKLOJgQbEcmUrcrjMs=";
};
patches = [
# Remove when version > 1.2
(fetchpatch {
name = "0001-nuked-md-Fix-missing-string-h-include.patch";
url = "https://github.com/nukeykt/Nuked-MD/commit/b875cd79104217af581131b22f4111409273617a.patch";
hash = "sha256-Mx3jmrlBbxdz3ZBr4XhmBk1S04xB0uaxzPXpXSlipV4=";
})
];
# Interesting detail about our SDL2 packaging:
# Because we build it with the configure script instead of CMake, we ship sdl2-config.cmake instead of SDL2Config.cmake
# The former doesn't set SDL2_FOUND while the latter does (like CMake config scripts should), which causes this issue: