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