2015-12-29 15:39:45 +01:00
|
|
|
{ stdenv, fetchurl, allegro }:
|
2010-11-27 20:18:22 +01:00
|
|
|
|
2015-12-29 15:39:45 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "atanks-${version}";
|
|
|
|
version = "6.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/atanks/atanks/${name}/${name}.tar.gz";
|
2015-05-10 11:09:40 +02:00
|
|
|
sha256 = "1s1lb87ind0y9d6hmfaf1b9wks8q3hd6w5n9dibq75rxqmcfvlpy";
|
2010-11-27 20:18:22 +01:00
|
|
|
};
|
|
|
|
|
2015-12-29 15:39:45 +01:00
|
|
|
buildInputs = [ allegro ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace Makefile --replace /usr $out
|
|
|
|
'';
|
2010-11-27 20:18:22 +01:00
|
|
|
|
2015-12-29 15:39:45 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)/" "INSTALL=install" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2010-11-27 20:18:22 +01:00
|
|
|
description = "Atomic Tanks ballistics game";
|
2015-12-29 15:39:45 +01:00
|
|
|
homepage = http://atanks.sourceforge.net/;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2010-11-27 20:18:22 +01:00
|
|
|
};
|
2015-12-29 15:39:45 +01:00
|
|
|
}
|