10 assert lib.elem ui [ "terminal" "curses" ];
11 stdenv.mkDerivation (finalAttrs: {
13 version = "unstable-2019-12-10";
15 src = fetchFromGitHub {
18 rev = "67439255df7d4f70209ca628d65128cd41d33e8d";
19 hash = "sha256-U7g2wCZgR7Lp/69ktQIZZ1cScll2baCequemTl3Mc3I=";
23 substituteInPlace Makefile \
24 --replace "-lcurses" "-lncurses"
34 ++ (lib.optional (ui == "curses") ncurses);
38 env.NIX_CFLAGS_COMPILE = "-I${lib.getDev gettext}/share/gettext/";
41 "CC=${stdenv.cc.targetPrefix}cc"
48 install -Dm755 -t $out/bin 2048
49 installManPage man/2048.6
55 homepage = "https://github.com/tiehuis/2048-cli";
56 description = "The game 2048 for your Linux terminal";
57 license = lib.licenses.mit;
58 maintainers = [ lib.maintainers.AndersonTorres ];
59 platforms = lib.platforms.unix;