2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses }:
|
2020-08-25 17:39:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tty-solitaire";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpereira";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0kix7wfy2bda8cw5kfm7bm5acd5fqmdl9g52ms9bza4kf2jnb754";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
patchPhase = "sed -i -e '/^CFLAGS *?= *-g *$/d' Makefile";
|
|
|
|
|
2021-02-16 11:48:46 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "PREFIX=${placeholder "out"}" ];
|
2020-08-25 17:39:45 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-25 17:39:45 +00:00
|
|
|
description = "Klondike Solitaire in your ncurses terminal";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/mpereira/tty-solitaire";
|
|
|
|
platforms = ncurses.meta.platforms;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|