aboutsummaryrefslogtreecommitdiff
path: root/pkgs/games/btanks
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-11-11 20:52:07 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2018-11-13 19:14:10 -0600
commitbfbfe941abba2a0d7061c86d78b1e8facdeb17f8 (patch)
tree2f6b86640ce155d6ecf2c5ec79811ad63c2cc703 /pkgs/games/btanks
parent1ba9fd335d90bca03b3868d3bf10c3d9a9de29c6 (diff)
treewide: use scons setup hook
Lots of packages can use it. Here is the list: - jackmix - klick - mixx - nova-filters - rhvoice - giv - mypaint - swift-im - bombono - mapnik - serf - nuitka - pyexiv2 - godot - hammer - toluapp - btanks - dxx-rebirth - endless-sky - globulation - the-powder-toy - fceux - gpsd - mongodb - rippled - mariadb - lprof
Diffstat (limited to 'pkgs/games/btanks')
-rw-r--r--pkgs/games/btanks/default.nix31
1 files changed, 14 insertions, 17 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;
};
}