mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
29 lines
687 B
Nix
29 lines
687 B
Nix
{ stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "braincurses";
|
|
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; {
|
|
homepage = https://github.com/bderrly/braincurses;
|
|
description = "A version of the classic game Mastermind";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|