about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ss/sssnake/package.nix
blob: 98b774bf4f8c5a3a123693848893b160a2801dc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  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";
    mainProgram = "sssnake";
    homepage = "https://github.com/angeljumbo/sssnake";
    license = with licenses; [mit];
    platforms = platforms.unix;
    maintainers = with maintainers; [quantenzitrone];
  };
}