Add ncurses-2048 game

This commit is contained in:
Michael Raskin 2014-11-23 22:50:40 +03:00
parent 0bffb63726
commit 73f4466a90
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{stdenv, fetchurl, ncurses}:
let
s =
rec {
baseName = "n2048";
version = "0.1";
name = "${baseName}-${version}";
url = "http://www.dettus.net/n2048/${baseName}_v${version}.tar.gz";
sha256 = "184z2rr0rnj4p740qb4mzqr6kgd76ynb5gw9bj8hrfshcxdcg1kk";
};
buildInputs = [
ncurses
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
makeFlags = [
''DESTDIR=$(out)''
];
preInstall = ''
mkdir -p "$out"/{share/man,bin}
'';
meta = {
inherit (s) version;
description = ''Console implementation of 2048 game'';
license = stdenv.lib.licenses.bsd2;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
homepage = "http://www.dettus.net/n2048/";
};
}

View File

@ -11469,6 +11469,8 @@ let
inherit (pythonPackages) matplotlib cherrypy sqlite3; inherit (pythonPackages) matplotlib cherrypy sqlite3;
}; };
n2048 = callPackage ../games/n2048 {};
naev = callPackage ../games/naev { }; naev = callPackage ../games/naev { };
nexuiz = callPackage ../games/nexuiz { }; nexuiz = callPackage ../games/nexuiz { };