bb5b50588c
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
27 lines
733 B
Nix
27 lines
733 B
Nix
{ lib, stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
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";
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "PREFIX=${placeholder "out"}" ];
|
|
|
|
meta = with lib; {
|
|
description = "Klondike Solitaire in your ncurses terminal";
|
|
license = licenses.mit;
|
|
homepage = "https://github.com/mpereira/tty-solitaire";
|
|
platforms = ncurses.meta.platforms;
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
};
|
|
}
|