nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 34 lines 731 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 ncurses, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "braincurses"; 10 version = "1.1.0"; 11 12 src = fetchFromGitHub { 13 owner = "bderrly"; 14 repo = "braincurses"; 15 rev = 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 = with lib; { 27 homepage = "https://github.com/bderrly/braincurses"; 28 description = "Version of the classic game Mastermind"; 29 mainProgram = "braincurses"; 30 license = licenses.gpl2Only; 31 maintainers = with maintainers; [ dotlambda ]; 32 platforms = platforms.linux; 33 }; 34}