Unverified Commit 450f24c3 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

_2048-cli{,-curses,-terminal}: drop (#414622)

parents 1bebb6ee c0ffafcd
Loading
Loading
Loading
Loading

pkgs/games/2048-cli/default.nix

deleted100644 → 0
+0 −65
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  gettext,
  installShellFiles,
  ncurses,
  ui ? "terminal",
}:

assert lib.elem ui [
  "terminal"
  "curses"
];
stdenv.mkDerivation (finalAttrs: {
  pname = "2048-cli";
  version = "unstable-2019-12-10";

  src = fetchFromGitHub {
    owner = "tiehuis";
    repo = "2048-cli";
    rev = "67439255df7d4f70209ca628d65128cd41d33e8d";
    hash = "sha256-U7g2wCZgR7Lp/69ktQIZZ1cScll2baCequemTl3Mc3I=";
  };

  postPatch = ''
    substituteInPlace Makefile \
      --replace "-lcurses" "-lncurses"
  '';

  nativeBuildInputs = [
    installShellFiles
  ];

  buildInputs = [
    gettext
  ] ++ (lib.optional (ui == "curses") ncurses);

  dontConfigure = true;

  env.NIX_CFLAGS_COMPILE = "-I${lib.getDev gettext}/share/gettext/";

  makeFlags = [
    "CC=${stdenv.cc.targetPrefix}cc"
    ui
  ];

  installPhase = ''
    runHook preInstall

    install -Dm755 -t $out/bin 2048
    installManPage man/2048.6

    runHook postInstall
  '';

  meta = {
    homepage = "https://github.com/tiehuis/2048-cli";
    description = "Game 2048 for your Linux terminal";
    license = lib.licenses.mit;
    maintainers = [ ];
    platforms = lib.platforms.unix;
    mainProgram = "2048";
  };
})
+3 −0
Original line number Diff line number Diff line
@@ -224,6 +224,9 @@ mapAliases {

  ### _ ###
  _1password = lib.warnOnInstantiate "_1password has been renamed to _1password-cli to better follow upstream name usage" _1password-cli; # Added 2024-10-24
  _2048-cli = throw "'_2048-cli' has been removed due to archived upstream. Consider using '_2048-in-terminal' instead."; # Added 2025-06-07
  _2048-cli-curses = throw "'_2048-cli-curses' has been removed due to archived upstream. Consider using '_2048-in-terminal' instead."; # Added 2025-06-07
  _2048-cli-terminal = throw "'_2048-cli-curses' has been removed due to archived upstream. Consider using '_2048-in-terminal' instead."; # Added 2025-06-07
  _5etools = throw "'_5etools' has been removed, as upstream is in a questionable legal position and the build was broken.";
  "7z2hashcat" =
    throw "'7z2hashcat' has been renamed to '_7z2hashcat' as the former isn't a valid variable name."; # Added 2024-11-27
+0 −4
Original line number Diff line number Diff line
@@ -14789,10 +14789,6 @@ with pkgs;
  ### GAMES
  _2048-cli = _2048-cli-terminal;
  _2048-cli-curses = callPackage ../games/2048-cli { ui = "curses"; };
  _2048-cli-terminal = callPackage ../games/2048-cli { ui = "terminal"; };
  _90secondportraits = callPackage ../games/90secondportraits { love = love_0_10; };
  inherit (callPackages ../games/fteqw { })