2023-09-05 20:21:56 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
ncurses,
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sssnake";
|
|
|
|
version = "0.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angeljumbo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-zkErOV6Az0kJdwyXzMCnVW1997zpAB79TBvf/41Igic=";
|
|
|
|
};
|
|
|
|
buildInputs = [ncurses];
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
];
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cli snake game that plays itself";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "sssnake";
|
2023-09-05 20:21:56 +00:00
|
|
|
homepage = "https://github.com/angeljumbo/sssnake";
|
|
|
|
license = with licenses; [mit];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [quantenzitrone];
|
|
|
|
};
|
|
|
|
}
|