mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
f35a5e2479
Bumps the revision and fixes https://hydra.nixos.org/build/178082390 Mark the version as "unstable" because the latest official version does not build and there are no new releases.
35 lines
1.0 KiB
Nix
35 lines
1.0 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, libGLU, libGL, sfml, fribidi, taglib }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "mars";
|
|
version = "unstable-17.10.2021";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thelaui";
|
|
repo = "M.A.R.S.";
|
|
rev = "84664cda094efe6e49d9b1550e4f4f98c33eefa2";
|
|
sha256 = "sha256-SWLP926SyVTjn+UT1DCaJSo4Ue0RbyzImVnlNJQksS0=";
|
|
};
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ libGLU libGL sfml fribidi taglib ];
|
|
installPhase = ''
|
|
cd ..
|
|
mkdir -p "$out/share/mars/"
|
|
mkdir -p "$out/bin/"
|
|
cp -rv data resources credits.txt license.txt "$out/share/mars/"
|
|
cp -v marsshooter "$out/bin/mars.bin"
|
|
cat << EOF > "$out/bin/mars"
|
|
#! ${stdenv.shell}
|
|
cd "$out/share/mars/"
|
|
exec "$out/bin/mars.bin" "\$@"
|
|
EOF
|
|
chmod +x "$out/bin/mars"
|
|
'';
|
|
meta = with lib; {
|
|
homepage = "http://mars-game.sourceforge.net/";
|
|
description = "A game about fighting with ships in a 2D space setting";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.astsmtl ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|