nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 fetchFromGitHub,
4 lib,
5 ncurses,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "nsnake";
10 version = "3.0.1";
11
12 src = fetchFromGitHub {
13 owner = "alexdantas";
14 repo = "nSnake";
15 rev = "v${version}";
16 sha256 = "sha256-MixwIhyymruruV8G8PjmR9EoZBpaDVBCKBccSFL0lS8=";
17 };
18
19 buildInputs = [ ncurses ];
20
21 makeFlags = [ "PREFIX=$(out)" ];
22
23 meta = {
24 description = "ncurses based snake game for the terminal";
25 mainProgram = "nsnake";
26 homepage = "https://github.com/alexdantas/nSnake";
27 license = lib.licenses.gpl3Plus;
28 maintainers = with lib.maintainers; [ clerie ];
29 };
30}