xsokoban: fix build agaist gcc-14
It's a really old program. Let's disable most implicit declarations to restore the build.
This commit is contained in:
parent
88c834978e
commit
5ac792da3f
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||
libXt
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-I${libXpm.dev}/include/X11";
|
||||
env.NIX_CFLAGS_COMPILE = "-I${libXpm.dev}/include/X11 -Wno-error=implicit-int -Wno-error=implicit-function-declaration";
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
@ -34,6 +34,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
preConfigure = ''
|
||||
sed -e 's/getline/my_getline/' -i score.c
|
||||
sed -e 's/getpass/my_getpass/' -i externs.h display.c
|
||||
|
||||
chmod a+rw config.h
|
||||
cat >>config.h <<EOF
|
||||
@ -60,6 +61,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "X sokoban";
|
||||
homepage = "https://www.cs.cornell.edu/andru/xsokoban.html";
|
||||
mainProgram = "xsokoban";
|
||||
license = licenses.publicDomain;
|
||||
maintainers = [ maintainers.raskin ];
|
||||
|
Loading…
x
Reference in New Issue
Block a user