Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
ncurses,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "yetris";
|
|
version = "2.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alexdantas";
|
|
repo = "yetris";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-k9CXXIaDk1eAtRBEj0VCfE+D1FtmIDX3niubAdrfjqw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/Game/Entities/RotationSystemSRS.cpp \
|
|
--replace-fail 'char' 'signed char'
|
|
substituteInPlace src/Game/Entities/PieceDefinitions.cpp \
|
|
--replace-fail 'char' 'signed char'
|
|
substituteInPlace src/Game/Entities/PieceDefinitions.hpp \
|
|
--replace-fail 'char' 'signed char'
|
|
'';
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
];
|
|
|
|
makeFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
"BINDIR=$(EXEC_PREFIX)/bin"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
|
|
meta = {
|
|
description = "Customizable Tetris(tm) for the terminal";
|
|
homepage = "https://alexdantas.github.io/yetris/";
|
|
downloadPage = "https://github.com/alexdantas/yetris";
|
|
changelog = "https://github.com/alexdantas/yetris/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "yetris";
|
|
maintainers = with lib.maintainers; [ ethancedwards8 ];
|
|
};
|
|
})
|