1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00
nixpkgs/pkgs/games/btanks/default.nix
Matthew Bauer bfbfe941ab 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
2018-11-13 19:14:10 -06:00

35 lines
1.1 KiB
Nix

{ stdenv, fetchurl, fetchpatch, scons, pkgconfig, SDL, libGLU_combined, zlib, smpeg
, SDL_image, libvorbis, expat, zip, lua5_1 }:
stdenv.mkDerivation rec {
name = "battle-tanks-0.9.8083";
src = fetchurl {
url = mirror://sourceforge/btanks/btanks-0.9.8083.tar.bz2;
sha256 = "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz";
};
nativeBuildInputs = [ scons pkgconfig ];
buildInputs = [ SDL libGLU_combined zlib smpeg SDL_image libvorbis expat zip lua5_1 ];
NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL";
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 = licenses.gpl2Plus;
platforms = platforms.unix;
};
}