From 00918cc46d3a94c8a383094edb1a681c172d900a Mon Sep 17 00:00:00 2001 From: Quantenzitrone <74491719+Quantenzitrone@users.noreply.github.com> Date: Tue, 5 Sep 2023 20:21:56 +0000 Subject: [PATCH] sssnake: init at 0.3.2 (#253441) * sssnake: init at 0.3.2 * sssnake: apply suggestions --------- Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com> --- pkgs/by-name/ss/sssnake/package.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/by-name/ss/sssnake/package.nix diff --git a/pkgs/by-name/ss/sssnake/package.nix b/pkgs/by-name/ss/sssnake/package.nix new file mode 100644 index 000000000000..d50d624781b0 --- /dev/null +++ b/pkgs/by-name/ss/sssnake/package.nix @@ -0,0 +1,27 @@ +{ + 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"; + homepage = "https://github.com/angeljumbo/sssnake"; + license = with licenses; [mit]; + platforms = platforms.unix; + maintainers = with maintainers; [quantenzitrone]; + }; +}