Skip to content

Commit

Permalink
mars: fix build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
azahi committed May 28, 2022
1 parent f0f03b5 commit f35a5e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 141 deletions.
13 changes: 4 additions & 9 deletions pkgs/games/mars/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
{ lib, stdenv, fetchFromGitHub, cmake, libGLU, libGL, sfml, fribidi, taglib }:
stdenv.mkDerivation rec {
pname = "mars";
version = "0.7.5";
version = "unstable-17.10.2021";

src = fetchFromGitHub {
owner = "thelaui";
repo = "M.A.R.S.";
rev = "c855d044094a1d92317e38935d81ba938946132e";
sha256 = "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh";
rev = "84664cda094efe6e49d9b1550e4f4f98c33eefa2";
sha256 = "sha256-SWLP926SyVTjn+UT1DCaJSo4Ue0RbyzImVnlNJQksS0=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libGLU libGL sfml fribidi taglib ];
patches = [
./unbind_fix.patch
./fix-gluortho2d.patch
];
installPhase = ''
cd ..
find -name '*.svn' -exec rm -rf {} \;
mkdir -p "$out/share/mars/"
mkdir -p "$out/bin/"
cp -rv data resources credits.txt license.txt "$out/share/mars/"
cp -v mars "$out/bin/mars.bin"
cp -v marsshooter "$out/bin/mars.bin"
cat << EOF > "$out/bin/mars"
#! ${stdenv.shell}
cd "$out/share/mars/"
Expand Down
113 changes: 0 additions & 113 deletions pkgs/games/mars/fix-gluortho2d.patch

This file was deleted.

19 changes: 0 additions & 19 deletions pkgs/games/mars/unbind_fix.patch

This file was deleted.

0 comments on commit f35a5e2

Please sign in to comment.