Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 37 lines 753 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 ncurses, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "msnake"; 11 # last release tag was 13 years ago 12 version = "0.1.1-unstable-2020-02-01"; 13 14 src = fetchFromGitHub { 15 owner = "mogria"; 16 repo = "msnake"; 17 rev = "830967fc8195216120fedcac1574113b367a0f9a"; 18 hash = "sha256-5q3yT7amPF+SSvO6/eUU7IiK0k6f3nme9YYBUobSuuo="; 19 }; 20 21 nativeBuildInputs = [ 22 cmake 23 ]; 24 25 buildInputs = [ 26 ncurses 27 ]; 28 29 meta = { 30 description = "Multiplatform command line snake game"; 31 homepage = "https://github.com/mogria/msnake"; 32 license = lib.licenses.mit; 33 platforms = lib.platforms.unix; 34 mainProgram = "msnake"; 35 maintainers = with lib.maintainers; [ ethancedwards8 ]; 36 }; 37})