about summary refs log tree commit diff
path: root/pkgs/games/atanks
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-07-01 13:07:33 +0400
committerMichael Raskin <7c6f434c@mail.ru>2014-07-01 13:07:33 +0400
commit874e4d7d2329fcbefbb48f03b4fb605e12968236 (patch)
tree41bd4790bb549c756e1e94fc908506943c62b2d2 /pkgs/games/atanks
parenta7984cca3b8b0e5cacea26bc3511f0d7ba0d1cca (diff)
Update atanks
Diffstat (limited to 'pkgs/games/atanks')
-rw-r--r--pkgs/games/atanks/default.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/games/atanks/default.nix b/pkgs/games/atanks/default.nix
index 7669c44332197..587fefe600b2e 100644
--- a/pkgs/games/atanks/default.nix
+++ b/pkgs/games/atanks/default.nix
@@ -11,17 +11,17 @@ let
     (builtins.attrNames (builtins.removeAttrs x helperArgNames));
   sourceInfo = rec {
     baseName="atanks";
-    version="4.9";
+    version = "6.0";
     name="${baseName}-${version}";
     project="${baseName}";
     url="mirror://sourceforge/project/${project}/${baseName}/${name}/${name}.tar.gz";
-    hash="015nwh8jk4k24ci6ilihii8idkyf6g266r4vl50csvykc82slrvd";
+    sha256 = "0460zwzd800vcgsmd1dzb7j5wcy3lf9hsdw152f6p2mbd0nq5pds";
   };
 in
 rec {
   src = a.fetchurl {
     url = sourceInfo.url;
-    sha256 = sourceInfo.hash;
+    sha256 = sourceInfo.sha256;
   };
 
   inherit (sourceInfo) name version;
@@ -35,6 +35,7 @@ rec {
   fixInstall = a.fullDepEntry (''
     sed -e "s@INSTALL=.*bin/install @INSTALL=install @" -i Makefile
     sed -e "s@-g 0 -m ... -o 0@@" -i Makefile
+    sed -e 's@/usr/@'"$out"'@g' -i Makefile
   '') ["doUnpack" "minInit"];
       
   meta = {
@@ -45,11 +46,8 @@ rec {
     ];
     platforms = with a.lib.platforms;
       linux;
-  };
-  passthru = {
-    updateInfo = {
-      downloadPage = "http://sourceforge.net/projects/atanks/files/atanks/";
-    };
+    downloadPage = "http://sourceforge.net/projects/atanks/files/atanks/";
+    inherit version;
   };
 }) x