2017-11-12 14:03:54 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "braincurses";
|
2017-11-12 14:03:54 +00:00
|
|
|
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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/bderrly/braincurses";
|
2017-11-12 14:03:54 +00:00
|
|
|
description = "A version of the classic game Mastermind";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|