Skip to content

Commit

Permalink
Merge pull request #31562 from dotlambda/braincurses
Browse files Browse the repository at this point in the history
braincurses: init at 1.1.0
  • Loading branch information
orivej committed Nov 12, 2017
2 parents dd1a9fa + ebd064b commit 5e69810
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/games/braincurses/default.nix
@@ -0,0 +1,28 @@
{ stdenv, fetchFromGitHub, ncurses }:

stdenv.mkDerivation rec {
name = "braincurses-${version}";
version = "1.1.0";

src = fetchFromGitHub {
owner = "bderrly";
repo = "braincurses";
rev = version;
sha256 = "0gpny9wrb0zj3lr7iarlgn9j4367awj09v3hhxz9r9a6yhk4anf5";
};

buildInputs = [ ncurses ];

# There is no install target in the Makefile
installPhase = ''
install -Dt $out/bin braincurses
'';

meta = with stdenv.lib; {
homepage = https://github.com/bderrly/braincurses;
description = "A version of the classic game Mastermind";
license = licenses.gpl2;
maintainers = with maintainers; [ dotlambda ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -17678,6 +17678,8 @@ with pkgs;

blobby = callPackage ../games/blobby { };

braincurses = callPackage ../games/braincurses { };

brogue = callPackage ../games/brogue { };

bsdgames = callPackage ../games/bsdgames { };
Expand Down

0 comments on commit 5e69810

Please sign in to comment.