Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
790 B
Nix
39 lines
790 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
ncurses,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tty-solitaire";
|
|
version = "1.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mpereira";
|
|
repo = "tty-solitaire";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-8lEF1P2aKh0D4moCu54Z4Tv9xLFkZJzFuXJLo7oF9MQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i -e '/^CFLAGS *?= *-g *$/d' Makefile
|
|
'';
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
"PREFIX=${placeholder "out"}"
|
|
];
|
|
|
|
meta = {
|
|
description = "Klondike Solitaire in your ncurses terminal";
|
|
license = lib.licenses.mit;
|
|
homepage = "https://github.com/mpereira/tty-solitaire";
|
|
platforms = ncurses.meta.platforms;
|
|
maintainers = [ ];
|
|
mainProgram = "ttysolitaire";
|
|
};
|
|
})
|