Commit e77069c4 authored by aleksana's avatar aleksana
Browse files

Revert "n2048: drop"

This reverts commit ba4aba08.
parent a6dc557d
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchurl,
  ncurses,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "n2048";
  version = "0.1";

  src = fetchurl {
    url = "http://www.dettus.net/n2048/n2048_v${finalAttrs.version}.tar.gz";
    hash = "sha256-c4bHWmdQuwyRXIm/sqw3p71pMv6VLAzIuUTaDHIWn6A=";
  };

  env = {
    NIX_CFLAGS_COMPILE = toString [
      "-Wno-error=implicit-function-declaration"
    ];
  };

  buildInputs = [
    ncurses
  ];

  makeFlags = [
    "DESTDIR=$(out)"
  ];

  preInstall = ''
    mkdir -p "$out"/{share/man,bin}
  '';

  meta = {
    description = "Console implementation of 2048 game";
    mainProgram = "n2048";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ raskin ];
    platforms = lib.platforms.linux;
    homepage = "http://www.dettus.net/n2048/";
  };
})
+0 −1
Original line number Diff line number Diff line
@@ -1286,7 +1286,6 @@ mapAliases {

  ### N ###

  n2048 = throw "'n2048' has been removed due to lack of maintenance upstream. Consider using '_2048-in-terminal'."; # Added 2025-06-07
  ncdu_2 = ncdu; # Added 2022-07-22
  neocities-cli = neocities; # Added 2024-07-31
  neocomp = throw "neocomp has been remove because it fails to build and was unmaintained upstream"; # Added 2025-04-28