nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, allegro }:
2
3stdenv.mkDerivation rec {
4 pname = "atanks";
5 version = "6.6";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/project/atanks/atanks/${pname}-${version}/${pname}-${version}.tar.gz";
9 sha256 = "sha256-vGse/J/H52JPrR2DUtcuknvg+6IWC7Jbtri9bGNwv0M=";
10 };
11
12 buildInputs = [ allegro ];
13
14 makeFlags = [ "PREFIX=$(out)/" "INSTALL=install" "CXX=g++" ];
15
16 meta = with lib; {
17 description = "Atomic Tanks ballistics game";
18 homepage = "http://atanks.sourceforge.net/";
19 maintainers = [ maintainers.raskin ];
20 platforms = platforms.linux;
21 license = licenses.gpl2;
22 };
23}