mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
Adding atanks
svn path=/nixpkgs/trunk/; revision=24893
This commit is contained in:
parent
961c737634
commit
e5137b9bbf
55
pkgs/games/atanks/default.nix
Normal file
55
pkgs/games/atanks/default.nix
Normal file
@ -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
|
||||
|
@ -6584,6 +6584,8 @@ let
|
||||
libsigcxx = libsigcxx12;
|
||||
};
|
||||
|
||||
atanks = callPackage ../games/atanks {};
|
||||
|
||||
ballAndPaddle = callPackage ../games/ball-and-paddle { };
|
||||
|
||||
blackshades = callPackage ../games/blackshades { };
|
||||
|
Loading…
Reference in New Issue
Block a user