freesweep: init at 1.0.1
Freesweep is a console minesweeper game.
This commit is contained in:
parent
9c048f4fb6
commit
c09608f6a8
35
pkgs/games/freesweep/default.nix
Normal file
35
pkgs/games/freesweep/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ fetchurl, ncurses, stdenv,
|
||||||
|
updateAutotoolsGnuConfigScriptsHook }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "freesweep-${version}";
|
||||||
|
version = "1.0.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/rwestlund/freesweep/archive/v${version}.tar.gz";
|
||||||
|
sha256 = "0l2kf14558lsq9qd2hs0kcyn9bbl1jdbzwrvcs6mnyjl7zpizcpj";
|
||||||
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
@ -17875,6 +17875,8 @@ with pkgs;
|
|||||||
boost = boost160;
|
boost = boost160;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
freesweep = callPackage ../games/freesweep { };
|
||||||
|
|
||||||
frotz = callPackage ../games/frotz { };
|
frotz = callPackage ../games/frotz { };
|
||||||
|
|
||||||
fsg = callPackage ../games/fsg {
|
fsg = callPackage ../games/fsg {
|
||||||
|
Loading…
Reference in New Issue
Block a user