summary refs log tree commit diff
path: root/pkgs/games/2048-cli
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-02-12 15:55:14 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-02-14 22:32:08 -0300
commitf445f928f4edd24ceffab951ba013b66e7d7ad23 (patch)
treecd6c8c48a4ad0f700493dc375c27b0c29b645d89 /pkgs/games/2048-cli
parent93aba2c96d34e84e543ed608b3e1b7322a4bc783 (diff)
2048-cli: 0.9.1 -> unstable-2019-12-10
Diffstat (limited to 'pkgs/games/2048-cli')
-rw-r--r--pkgs/games/2048-cli/default.nix25
1 files changed, 11 insertions, 14 deletions
diff --git a/pkgs/games/2048-cli/default.nix b/pkgs/games/2048-cli/default.nix
index dc428f53a6ad0..947973c0fb31c 100644
--- a/pkgs/games/2048-cli/default.nix
+++ b/pkgs/games/2048-cli/default.nix
@@ -1,24 +1,22 @@
 { lib
 , stdenv
 , fetchFromGitHub
-, SDL2
-, SDL2_ttf
+, gettext
 , installShellFiles
 , ncurses
-, pkg-config
 , ui ? "terminal"
 }:
 
-assert lib.elem ui [ "terminal" "curses" "sdl" ];
+assert lib.elem ui [ "terminal" "curses" ];
 stdenv.mkDerivation (self: {
   pname = "2048-cli";
-  version = "0.9.1";
+  version = "unstable-2019-12-10";
 
   src = fetchFromGitHub {
     owner = "tiehuis";
     repo = "2048-cli";
-    rev = "v${self.version}";
-    hash = "sha256-pLOrUilIrA+wo3iePhSXSK1UhbcjKyAx4SpKcC0I2yY=";
+    rev = "67439255df7d4f70209ca628d65128cd41d33e8d";
+    hash = "sha256-U7g2wCZgR7Lp/69ktQIZZ1cScll2baCequemTl3Mc3I=";
   };
 
   postPatch = ''
@@ -28,16 +26,16 @@ stdenv.mkDerivation (self: {
 
   nativeBuildInputs = [
     installShellFiles
-    pkg-config
   ];
 
-  buildInputs =
-    (lib.optional (ui == "curses") ncurses)
-    ++ (lib.optionals (ui == "sdl") [ SDL2 SDL2_ttf ]);
+  buildInputs = [
+    gettext
+  ]
+  ++ (lib.optional (ui == "curses") ncurses);
 
   dontConfigure = true;
 
-  NIX_CFLAGS_COMPILE = lib.optionalString (ui == "sdl") "-I${SDL2_ttf}/include/SDL2";
+  NIX_CFLAGS_COMPILE="-I${lib.getDev gettext}/share/gettext/";
 
   makeFlags = [
     "CC=${stdenv.cc.targetPrefix}cc"
@@ -48,7 +46,7 @@ stdenv.mkDerivation (self: {
     runHook preInstall
 
     install -Dm755 -t $out/bin 2048
-    installManPage man/2048.1
+    installManPage man/2048.6
 
     runHook postInstall
   '';
@@ -59,6 +57,5 @@ stdenv.mkDerivation (self: {
     license = lib.licenses.mit;
     maintainers = [ lib.maintainers.AndersonTorres ];
     platforms = lib.platforms.unix;
-    broken = (ui == "sdl"); # segmentation fault
   };
 })