nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 ncurses,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "braincurses";
10 version = "1.1.0";
11
12 src = fetchFromGitHub {
13 owner = "bderrly";
14 repo = "braincurses";
15 tag = finalAttrs.version;
16 sha256 = "0gpny9wrb0zj3lr7iarlgn9j4367awj09v3hhxz9r9a6yhk4anf5";
17 };
18
19 buildInputs = [ ncurses ];
20
21 # There is no install target in the Makefile
22 installPhase = ''
23 install -Dt $out/bin braincurses
24 '';
25
26 meta = {
27 homepage = "https://github.com/bderrly/braincurses";
28 description = "Version of the classic game Mastermind";
29 mainProgram = "braincurses";
30 license = lib.licenses.gpl2Only;
31 maintainers = with lib.maintainers; [ dotlambda ];
32 platforms = lib.platforms.linux;
33 };
34})