Commit 5ac792da authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

xsokoban: fix build agaist gcc-14

It's a really old program. Let's disable most implicit
declarations to restore the build.
parent 88c83497
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 ];