1 { lib, stdenv, fetchFromGitHub, ncurses, pkg-config }:
3 stdenv.mkDerivation rec {
4 pname = "2048-in-terminal";
5 version = "unstable-2022-06-13";
7 src = fetchFromGitHub {
9 repo = "2048-in-terminal";
10 rev = "bf22f868a2e0e572f22153468585ec0226a4b8b2";
11 sha256 = "sha256-Y5ZQYWOiG3QZZsr+d7olUDGAQ1LhRG9X2hBNQDx+Ztw=";
14 buildInputs = [ ncurses ];
15 nativeBuildInputs = [ pkg-config ];
17 enableParallelBuilding = true;
22 installFlags = [ "PREFIX=$(out)" ];
25 inherit (src.meta) homepage;
26 description = "Animated console version of the 2048 game";
27 license = licenses.mit;
28 platforms = platforms.unix;