2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ncurses
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "solicurses";
|
|
|
|
version = "unstable-2020-02-13";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KaylaPP";
|
|
|
|
repo = "SoliCurses";
|
|
|
|
rev = "dc89ca00fc1711dc449d0a594a4727af22fc35a0";
|
|
|
|
sha256 = "sha256-zWYXpvEnViT/8gsdMU9Ymi4Hw+nwkG6FT/3h5sNMCE4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cd build
|
|
|
|
'';
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
makeFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}c++"
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
installPhase = ''
|
|
|
|
install -D SoliCurses.out $out/bin/solicurses
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Version of Solitaire written in C++ using the ncurses library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "solicurses";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://github.com/KaylaPP/SoliCurses";
|
|
|
|
maintainers = with maintainers; [ laalsaas ];
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
inherit (ncurses.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|