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
32 lines
763 B
Nix
32 lines
763 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
ncurses,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "sssnake";
|
|
version = "0.3.2";
|
|
src = fetchFromGitHub {
|
|
owner = "angeljumbo";
|
|
repo = "sssnake";
|
|
rev = "v${version}";
|
|
hash = "sha256-zkErOV6Az0kJdwyXzMCnVW1997zpAB79TBvf/41Igic=";
|
|
};
|
|
postPatch = ''
|
|
substituteInPlace makefile --replace '-lncursesw' '-lncursesw -D_XOPEN_SOURCE=500'
|
|
'';
|
|
buildInputs = [ ncurses ];
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
];
|
|
meta = with lib; {
|
|
description = "Cli snake game that plays itself";
|
|
mainProgram = "sssnake";
|
|
homepage = "https://github.com/angeljumbo/sssnake";
|
|
license = with licenses; [ mit ];
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ quantenzitrone ];
|
|
};
|
|
}
|