{ stdenv, fetchurl, libX11, xorgproto, libXpm, libXt }: stdenv.mkDerivation rec { pname = "xsokoban"; version = "3.3c"; src = fetchurl { url = "https://www.cs.cornell.edu/andru/release/${pname}-${version}.tar.gz"; sha256 = "006lp8y22b9pi81x1a9ldfgkl1fbmkdzfw0lqw5y9svmisbafbr9"; }; buildInputs = [ libX11 xorgproto libXpm libXt ]; NIX_CFLAGS_COMPILE = "-I${libXpm.dev}/include/X11"; hardeningDisable = [ "format" ]; prePatch = '' substituteInPlace Makefile.in --replace 4755 0755 ''; preConfigure = '' sed -e 's/getline/my_getline/' -i score.c chmod a+rw config.h cat >>config.h <