about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/atanks/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/games/atanks/default.nix')
-rw-r--r--nixpkgs/pkgs/games/atanks/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/atanks/default.nix b/nixpkgs/pkgs/games/atanks/default.nix
new file mode 100644
index 000000000000..197cadfea29c
--- /dev/null
+++ b/nixpkgs/pkgs/games/atanks/default.nix
@@ -0,0 +1,23 @@
+{ 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";
+    homepage = "http://atanks.sourceforge.net/";
+    maintainers = [ maintainers.raskin ];
+    platforms = platforms.linux;
+    license = licenses.gpl2;
+  };
+}