1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-08 02:38:11 +09:00

Revert "n2048: drop" (#414672)

This commit is contained in:
7c6f434c 2025-06-07 08:49:52 +00:00 committed by GitHub
commit 4db7e575e6
Signed by: github
GPG key ID: B5690EEEBB952194
2 changed files with 43 additions and 1 deletions

View file

@ -0,0 +1,43 @@
{
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/";
};
})

View file

@ -1287,7 +1287,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