12 version = "unstable-2023-04-08";
14 src = fetchFromGitHub {
17 rev = "a32ea49f8f1d2bdb8983c28d24735696ac987617";
18 hash = "sha256-qkvgQraYR+EXWUQkEvSOcbNFn2oRTjwj5U164tVto8M=";
21 nativeBuildInputs = [ makeWrapper ];
22 buildInputs = [ libglut libGL libGLU ];
25 sed -i "s;font24.raw;$out/share/font24.raw;g" display.c
28 buildPhase = "sh build-linux.sh";
31 mkdir -p $out/bin $out/share
33 cp font24.raw $out/share
35 wrapProgram $out/bin/nw \
36 --prefix LD_LIBRARY_PATH ":" ${libglut}/lib \
37 --prefix LD_LIBRARY_PATH ":" ${libGLU}/lib \
38 --prefix LD_LIBRARY_PATH ":" ${libGL}/lib
42 description = "Space battle game with gravity as the main theme";
44 maintainers = with maintainers; [ pSub ];
45 platforms = platforms.linux;
46 license = licenses.mit;