2010-11-27 19:18:22 +00:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, allegro
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="atanks";
|
2014-12-20 21:32:21 +00:00
|
|
|
version = "6.1";
|
2010-11-27 19:18:22 +00:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
project="${baseName}";
|
|
|
|
url="mirror://sourceforge/project/${project}/${baseName}/${name}/${name}.tar.gz";
|
2014-12-20 21:32:21 +00:00
|
|
|
sha256 = "1azs9amqkgs7qglx0vk9bg2fhn73lq89372scnfp45hinrh52vqi";
|
2010-11-27 19:18:22 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
2014-07-01 10:07:33 +01:00
|
|
|
sha256 = sourceInfo.sha256;
|
2010-11-27 19:18:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["fixInstall" "doMakeInstall"];
|
|
|
|
makeFlags=[
|
|
|
|
"PREFIX=$out/"
|
|
|
|
];
|
|
|
|
fixInstall = a.fullDepEntry (''
|
|
|
|
sed -e "s@INSTALL=.*bin/install @INSTALL=install @" -i Makefile
|
|
|
|
sed -e "s@-g 0 -m ... -o 0@@" -i Makefile
|
2014-07-01 10:07:33 +01:00
|
|
|
sed -e 's@/usr/@'"$out"'@g' -i Makefile
|
2010-11-27 19:18:22 +00:00
|
|
|
'') ["doUnpack" "minInit"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Atomic Tanks ballistics game";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
2014-07-01 10:07:33 +01:00
|
|
|
downloadPage = "http://sourceforge.net/projects/atanks/files/atanks/";
|
|
|
|
inherit version;
|
2010-11-27 19:18:22 +00:00
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|