msnake: fix build with gcc15
This commit is contained in:
@@ -19,11 +19,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt --replace-fail \
|
||||
"cmake_minimum_required(VERSION 2.8.4)" \
|
||||
"cmake_minimum_required(VERSION 4.0)"
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-fail \
|
||||
"cmake_minimum_required(VERSION 2.8.4)" \
|
||||
"cmake_minimum_required(VERSION 4.0)" \
|
||||
--replace-fail "project(msnake)" "project(msnake C)"
|
||||
'';
|
||||
|
||||
# fixes: error: conflicting types for 'display_highscore'
|
||||
env.NIX_CFLAGS_COMPILE = "-std=gnu17";
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user