mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
43 lines
860 B
Nix
43 lines
860 B
Nix
{ 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
|
|
'';
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}c++"
|
|
];
|
|
|
|
installPhase = ''
|
|
install -D SoliCurses.out $out/bin/solicurses
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Version of Solitaire written in C++ using the ncurses library";
|
|
mainProgram = "solicurses";
|
|
homepage = "https://github.com/KaylaPP/SoliCurses";
|
|
maintainers = with maintainers; [ laalsaas ];
|
|
license = licenses.gpl3Only;
|
|
inherit (ncurses.meta) platforms;
|
|
};
|
|
}
|