nixpkgs/pkgs/games/braincurses/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
722 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, ncurses }:
2017-11-12 14:03:54 +00:00
stdenv.mkDerivation rec {
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 lib; {
homepage = "https://github.com/bderrly/braincurses";
2017-11-12 14:03:54 +00:00
description = "Version of the classic game Mastermind";
mainProgram = "braincurses";
2024-07-03 09:37:36 +00:00
license = licenses.gpl2Only;
2017-11-12 14:03:54 +00:00
maintainers = with maintainers; [ dotlambda ];
platforms = platforms.linux;
};
}