2015-09-11 06:30:11 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "2048-in-terminal-${version}";
|
2016-01-24 19:31:44 +00:00
|
|
|
version = "2015-01-15";
|
2015-09-11 06:30:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "1fdfmyhh60sz0xbilxkh2y09lvbcs9lamk2jkjkhxhlhxknmnfgs";
|
|
|
|
rev = "3e4e44fd360dfe114e81e6332a5a058a4b287cb1";
|
|
|
|
repo = "2048-in-terminal";
|
|
|
|
owner = "alewmoose";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
2015-11-26 17:44:44 +00:00
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
2015-09-11 06:30:11 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Animated console version of the 2048 game";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
}
|