about summary refs log tree commit diff
path: root/pkgs/games/atanks/default.nix
blob: 8a77be6f16eb6aab26de4bb82cb37f88ea70dd3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchurl, allegro }:

stdenv.mkDerivation rec {
  pname = "atanks";
  version = "6.6";

  src = fetchurl {
    url = "mirror://sourceforge/project/atanks/atanks/${pname}-${version}/${pname}-${version}.tar.gz";
    sha256 = "sha256-vGse/J/H52JPrR2DUtcuknvg+6IWC7Jbtri9bGNwv0M=";
  };

  buildInputs = [ allegro ];

  makeFlags = [ "PREFIX=$(out)/" "INSTALL=install" "CXX=g++" ];

  meta = with lib; {
    description = "Atomic Tanks ballistics game";
    mainProgram = "atanks";
    homepage = "http://atanks.sourceforge.net/";
    maintainers = [ maintainers.raskin ];
    platforms = platforms.linux;
    license = licenses.gpl2;
  };
}