2015-09-11 09:30:11 +03:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "2048-in-terminal";
|
2018-01-14 03:55:01 +03:00
|
|
|
version = "2017-11-29";
|
2015-09-11 09:30:11 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-01-14 03:55:01 +03:00
|
|
|
sha256 = "1cqv5z1i5zcrvj0w6pdfnnff8m6kjndqxwkwsw5ma9jz503bmyc6";
|
|
|
|
rev = "4e525066b0ef3442e92d2ba8dd373bdc205ece28";
|
2015-09-11 09:30:11 +03:00
|
|
|
repo = "2048-in-terminal";
|
|
|
|
owner = "alewmoose";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2017-08-14 05:29:17 +03:00
|
|
|
prePatch = ''
|
|
|
|
sed -i '1i#include <fcntl.h>\n' save.c
|
|
|
|
'';
|
|
|
|
|
2015-09-11 09:30:11 +03:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
2018-01-14 03:55:01 +03:00
|
|
|
installFlags = [ "DESTDIR=$(out)/bin" ];
|
2015-09-11 09:30:11 +03:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Animated console version of the 2048 game";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|