2018-11-15 06:48:39 +00:00
|
|
|
{ fetchFromGitHub, ncurses, stdenv,
|
2017-11-24 00:24:19 +00:00
|
|
|
updateAutotoolsGnuConfigScriptsHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "freesweep";
|
2017-11-24 00:24:19 +00:00
|
|
|
version = "1.0.1";
|
|
|
|
|
2018-11-15 06:48:39 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rwestlund";
|
|
|
|
repo = "freesweep";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0grkwmz9whg1vlnk6gbr0vv9i2zgbd036182pk0xj4cavaj9rpjb";
|
2017-11-24 00:24:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlags="$configureFlags --with-prefsdir=$out/share"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -D -m 0555 freesweep $out/bin/freesweep
|
|
|
|
install -D -m 0444 sweeprc $out/share/sweeprc
|
|
|
|
install -D -m 0444 freesweep.6 $out/share/man/man6/freesweep.6
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A console minesweeper-style game written in C for Unix-like systems";
|
|
|
|
homepage = https://github.com/rwestlund/freesweep;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ kierdavis ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|