2022-10-12 17:31:32 +02: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D SoliCurses.out $out/bin/solicurses
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A version of Solitaire written in C++ using the ncurses library";
|
|
|
|
homepage = "https://github.com/KaylaPP/SoliCurses";
|
|
|
|
maintainers = with maintainers; [ laalsaas ];
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
inherit (ncurses.meta) platforms;
|
2022-12-06 21:47:40 +01:00
|
|
|
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
|
|
|
|
broken = stdenv.isDarwin;
|
2022-10-12 17:31:32 +02:00
|
|
|
};
|
|
|
|
}
|