mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
b48569d5c6
2048-in-terminal: 2015-01-15 -> 2017-11-29
30 lines
689 B
Nix
30 lines
689 B
Nix
{ stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "2048-in-terminal-${version}";
|
|
version = "2017-11-29";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "1cqv5z1i5zcrvj0w6pdfnnff8m6kjndqxwkwsw5ma9jz503bmyc6";
|
|
rev = "4e525066b0ef3442e92d2ba8dd373bdc205ece28";
|
|
repo = "2048-in-terminal";
|
|
owner = "alewmoose";
|
|
};
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/bin
|
|
'';
|
|
installFlags = [ "DESTDIR=$(out)/bin" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Animated console version of the 2048 game";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|