1 { lib, stdenv, fetchFromGitHub, cmake, libGLU, libGL, sfml, fribidi, taglib }:
2 stdenv.mkDerivation rec {
4 version = "unstable-17.10.2021";
6 src = fetchFromGitHub {
9 rev = "84664cda094efe6e49d9b1550e4f4f98c33eefa2";
10 sha256 = "sha256-SWLP926SyVTjn+UT1DCaJSo4Ue0RbyzImVnlNJQksS0=";
12 nativeBuildInputs = [ cmake ];
13 buildInputs = [ libGLU libGL sfml fribidi taglib ];
16 mkdir -p "$out/share/mars/"
18 cp -rv data resources credits.txt license.txt "$out/share/mars/"
19 cp -v marsshooter "$out/bin/mars.bin"
20 cat << EOF > "$out/bin/mars"
23 exec "$out/bin/mars.bin" "\$@"
25 chmod +x "$out/bin/mars"
28 homepage = "http://mars-game.sourceforge.net/";
29 description = "A game about fighting with ships in a 2D space setting";
30 license = licenses.gpl3Plus;
31 maintainers = [ maintainers.astsmtl ];
32 platforms = platforms.linux;