summaryrefslogtreecommitdiffstats
path: root/pkgs/games
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/btanks/default.nix31
-rw-r--r--pkgs/games/dxx-rebirth/default.nix13
-rw-r--r--pkgs/games/endless-sky/default.nix10
-rw-r--r--pkgs/games/globulation/default.nix17
-rw-r--r--pkgs/games/the-powder-toy/default.nix2
5 files changed, 24 insertions, 49 deletions
diff --git a/pkgs/games/btanks/default.nix b/pkgs/games/btanks/default.nix
index d606662323f3..b1c20d72520e 100644
--- a/pkgs/games/btanks/default.nix
+++ b/pkgs/games/btanks/default.nix
@@ -14,24 +14,21 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL";
- patches = [ (fetchpatch {
- name = "gcc-4.7.patch";
- url = "https://anonscm.debian.org/viewvc/pkg-games/packages/trunk/btanks/debian/patches/gcc-4.7.patch?revision=13641&view=co&pathrev=15758";
- sha256 = "1dxlk1xh69gj10sqcsyckiakb8an3h41206wby4z44mpmvxc7pi4";
- }) ];
-
- buildPhase = ''
- scons prefix=$out
- '';
-
- installPhase = ''
- scons install
- '';
-
- meta = {
+ patches = [
+ (fetchpatch {
+ url = "https://sources.debian.org/data/main/b/btanks/0.9.8083-7/debian/patches/gcc-4.7.patch";
+ sha256 = "1dxlk1xh69gj10sqcsyckiakb8an3h41206wby4z44mpmvxc7pi4";
+ })
+ (fetchpatch {
+ url = "https://sources.debian.org/data/main/b/btanks/0.9.8083-7/debian/patches/pow10f.patch";
+ sha256 = "1h45790v2dpdbccfn6lwfgl8782q54i14cz9gpipkaghcka4y0g9";
+ })
+ ];
+
+ meta = with stdenv.lib; {
homepage = https://sourceforge.net/projects/btanks/;
description = "Fast 2d tank arcade game";
- license = stdenv.lib.licenses.gpl2Plus;
- broken = true; # 2018-09-13, no successful build since 2018-03-16
+ license = licenses.gpl2Plus;
+ platforms = platforms.unix;
};
}
diff --git a/pkgs/games/dxx-rebirth/default.nix b/pkgs/games/dxx-rebirth/default.nix
index 5334e4cbd12c..3e6bc2dc6f5e 100644
--- a/pkgs/games/dxx-rebirth/default.nix
+++ b/pkgs/games/dxx-rebirth/default.nix
@@ -39,18 +39,7 @@ in stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-Wno-format-nonliteral";
- buildPhase = ''
- runHook preBuild
-
- scons prefix=$out
-
- runHook postBuild
- '';
-
- installPhase = ''
- runHook preInstall
-
- scons prefix=$out install
+ postInstall = ''
install -Dm644 ${music} $out/share/games/dxx-rebirth/d2xr-sc55-music.dxa
install -Dm644 -t $out/share/doc/dxx-rebirth *.txt
diff --git a/pkgs/games/endless-sky/default.nix b/pkgs/games/endless-sky/default.nix
index 8e1bd52eb42f..447724a2043f 100644
--- a/pkgs/games/endless-sky/default.nix
+++ b/pkgs/games/endless-sky/default.nix
@@ -22,18 +22,12 @@ stdenv.mkDerivation rec {
SDL2 libpng libjpeg glew openal scons libmad
];
+ prefixKey = "PREFIX=";
+
patches = [
./fixes.patch
];
- buildPhase = ''
- scons -j$NIX_BUILD_CORES PREFIX="$out"
- '';
-
- installPhase = ''
- scons -j$NIX_BUILD_CORES install PREFIX="$out"
- '';
-
meta = with stdenv.lib; {
description = "A sandbox-style space exploration game similar to Elite, Escape Velocity, or Star Control";
homepage = https://endless-sky.github.io/;
diff --git a/pkgs/games/globulation/default.nix b/pkgs/games/globulation/default.nix
index 4bcf6cffa165..0c3b184b4952 100644
--- a/pkgs/games/globulation/default.nix
+++ b/pkgs/games/globulation/default.nix
@@ -32,19 +32,15 @@ stdenv.mkDerivation rec {
sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" SConstruct
'';
- buildInputs = [ libGLU_combined SDL scons SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ];
+ nativeBuildInputs = [ scons ];
+ buildInputs = [ libGLU_combined SDL SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ];
- buildPhase = ''
- scons
+ postConfigure = ''
+ sconsFlags+=" BINDIR=$out/bin"
+ sconsFlags+=" INSTALLDIR=$out/share/globulation2"
+ sconsFlags+=" DATADIR=$out/share/globulation2/glob2"
'';
- installPhase = ''
- scons install \
- BINDIR=$out/bin \
- INSTALLDIR=$out/share/globulation2 \
- DATADIR=$out/share/globulation2/glob2
- '';
-
meta = with stdenv.lib; {
description = "RTS without micromanagement";
maintainers = with maintainers; [ raskin ];
@@ -53,4 +49,3 @@ stdenv.mkDerivation rec {
};
passthru.updateInfo.downloadPage = "http://globulation2.org/wiki/Download_and_Install";
}
-
diff --git a/pkgs/games/the-powder-toy/default.nix b/pkgs/games/the-powder-toy/default.nix
index ce5b0b269660..6d10b8e2072f 100644
--- a/pkgs/games/the-powder-toy/default.nix
+++ b/pkgs/games/the-powder-toy/default.nix
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
buildInputs = [ SDL lua fftwFloat zlib bzip2 ];
- buildPhase = "scons DESTDIR=$out/bin --tool='' -j$NIX_BUILD_CORES";
+ sconsFlags = "--tool=";
installPhase = ''
install -Dm 755 build/powder* "$out/bin/powder"