2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses }:
|
2017-11-12 15:03:54 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "braincurses";
|
2017-11-12 15:03:54 +01: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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/bderrly/braincurses";
|
2017-11-12 15:03:54 +01:00
|
|
|
description = "Version of the classic game Mastermind";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "braincurses";
|
2024-07-03 11:37:36 +02:00
|
|
|
license = licenses.gpl2Only;
|
2017-11-12 15:03:54 +01:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|