diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-11-27 19:18:22 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-11-27 19:18:22 +0000 |
commit | e5137b9bbfca2654a78f689a1fabe020b70b27c6 (patch) | |
tree | c5edcdfb6c168669e880e5d2fe7eb3c9c69c211c /pkgs/games/atanks | |
parent | 961c737634fd3131a190b86442e0f0ff7da8a7e3 (diff) |
Adding atanks
svn path=/nixpkgs/trunk/; revision=24893
Diffstat (limited to 'pkgs/games/atanks')
-rw-r--r-- | pkgs/games/atanks/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/games/atanks/default.nix b/pkgs/games/atanks/default.nix new file mode 100644 index 000000000000..211e388b871a --- /dev/null +++ b/pkgs/games/atanks/default.nix @@ -0,0 +1,55 @@ +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"; + version="4.7"; + name="${baseName}-${version}"; + project="${baseName}"; + url="mirror://sourceforge/project/${project}/${baseName}/${name}/${name}.tar.gz"; + hash="0kd98anwb785irv4qm1gqpk2xnh1q0fxnfazkjqpwjvgrliyj2rh"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + 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 + '') ["doUnpack" "minInit"]; + + meta = { + description = "Atomic Tanks ballistics game"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "http://sourceforge.net/projects/atanks/files/atanks/"; + }; + }; +}) x + |