2022-10-04 23:30:14 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses, pkg-config }:
|
2015-09-11 06:30:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "2048-in-terminal";
|
2022-10-04 23:30:14 +00:00
|
|
|
version = "unstable-2022-06-13";
|
2015-09-11 06:30:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alewmoose";
|
2022-10-04 23:30:14 +00:00
|
|
|
repo = "2048-in-terminal";
|
|
|
|
rev = "bf22f868a2e0e572f22153468585ec0226a4b8b2";
|
|
|
|
sha256 = "sha256-Y5ZQYWOiG3QZZsr+d7olUDGAQ1LhRG9X2hBNQDx+Ztw=";
|
2015-09-11 06:30:11 +00:00
|
|
|
};
|
|
|
|
|
2021-11-21 15:38:47 +00:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-08-14 02:29:17 +00:00
|
|
|
|
2015-09-11 06:30:11 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
2021-11-21 15:38:47 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2015-09-11 06:30:11 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-09-11 06:30:11 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Animated console version of the 2048 game";
|
|
|
|
license = licenses.mit;
|
2022-03-30 04:43:40 +00:00
|
|
|
platforms = platforms.unix;
|
2015-09-11 06:30:11 +00:00
|
|
|
};
|
|
|
|
}
|