chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / bt / btanks / package.nix
blobc055e64e664d3e8abc8a1ab85f0806d9f78bd5c2
2   lib,
3   SDL,
4   SDL_image,
5   expat,
6   fetchpatch,
7   fetchurl,
8   libGL,
9   libvorbis,
10   lua,
11   pkg-config,
12   scons,
13   smpeg,
14   stdenv,
15   zip,
16   zlib,
19 stdenv.mkDerivation (finalAttrs: {
20   pname = "btanks";
21   version = "0.9.8083";
23   src = fetchurl {
24     url = "mirror://sourceforge/btanks/btanks-${finalAttrs.version}.tar.bz2";
25     hash = "sha256-P9LOaitF96YMOxFPqa/xPLPdn7tqZc3JeYt2xPosQ0E=";
26   };
28   patches = [
29     (fetchpatch {
30       name = "lua52.patch";
31       url = "https://aur.archlinux.org/cgit/aur.git/plain/lua52.patch?h=btanks&id=cd0e016963238f16209baa2da658aa3fad36e33d";
32       hash = "sha256-Xwl//sfGprhg71jf+X3q8qxdB+5ZtqJrjBxS8+cw5UY=";
33     })
34     (fetchpatch {
35       url = "https://salsa.debian.org/games-team/btanks/-/raw/debian/0.9.8083-9/debian/patches/gcc-4.7.patch";
36       hash = "sha256-JN7D+q63EvKJX9wAEQgcVqE1VZzMa4Y1CPIlA3uYtLc=";
37     })
38     (fetchpatch {
39       url = "https://salsa.debian.org/games-team/btanks/-/raw/debian/0.9.8083-9/debian/patches/pow10f.patch";
40       hash = "sha256-6QFP1GTwqXnjfekzEiIpWKCD6HOcGusYW+02sUE6hcA=";
41     })
42     (fetchpatch {
43       url = "https://salsa.debian.org/games-team/btanks/-/raw/debian/0.9.8083-9/debian/patches/python3.patch";
44       hash = "sha256-JpK409Myi8mxQaunmLFKKh1NKvKLXpNHHsDvRee8OoQ=";
45     })
46     (fetchpatch {
47       url = "https://salsa.debian.org/games-team/btanks/-/raw/debian/0.9.8083-9/debian/patches/scons.patch";
48       hash = "sha256-JCvBY2fOV8Sc/mpvEsJQv1wKcS1dHqYxvRk6I9p7ZKc=";
49     })
50   ];
52   nativeBuildInputs = [
53     SDL
54     pkg-config
55     scons
56     smpeg
57     zip
58   ];
60   buildInputs = [
61     SDL
62     SDL_image
63     expat
64     libGL
65     libvorbis
66     lua
67     smpeg
68     zlib
69   ];
71   env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL_image}/include/SDL";
73   enableParallelBuilding = true;
75   strictDeps = true;
77   meta = {
78     homepage = "https://sourceforge.net/projects/btanks/";
79     description = "Fast 2d tank arcade game with multiplayer and split-screen modes";
80     license = lib.licenses.gpl2Plus;
81     mainProgram = "btanks";
82     maintainers = with lib.maintainers; [ AndersonTorres ];
83     inherit (SDL.meta) platforms;
84   };