diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2014-11-23 22:50:40 +0300 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2014-11-23 22:50:47 +0300 |
commit | 73f4466a90885677c29ecd364226699a32d6bb78 (patch) | |
tree | b65f98ba7a9a2563fa90dfe2167d2136e24a2f30 /pkgs/games/n2048 | |
parent | 0bffb637266024a6a60731fa26f7b58bd6d9c065 (diff) |
Add ncurses-2048 game
Diffstat (limited to 'pkgs/games/n2048')
-rw-r--r-- | pkgs/games/n2048/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/games/n2048/default.nix b/pkgs/games/n2048/default.nix new file mode 100644 index 0000000000000..f5ff0b4690e9f --- /dev/null +++ b/pkgs/games/n2048/default.nix @@ -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/"; + }; +} |