15 stdenv.mkDerivation (finalAttrs: {
17 version = "unstable-2019-12-10";
19 src = fetchFromGitHub {
22 rev = "67439255df7d4f70209ca628d65128cd41d33e8d";
23 hash = "sha256-U7g2wCZgR7Lp/69ktQIZZ1cScll2baCequemTl3Mc3I=";
27 substituteInPlace Makefile \
28 --replace "-lcurses" "-lncurses"
37 ] ++ (lib.optional (ui == "curses") ncurses);
41 env.NIX_CFLAGS_COMPILE = "-I${lib.getDev gettext}/share/gettext/";
44 "CC=${stdenv.cc.targetPrefix}cc"
51 install -Dm755 -t $out/bin 2048
52 installManPage man/2048.6
58 homepage = "https://github.com/tiehuis/2048-cli";
59 description = "Game 2048 for your Linux terminal";
60 license = lib.licenses.mit;
61 maintainers = [ lib.maintainers.AndersonTorres ];
62 platforms = lib.platforms.unix;