git.iko.soy/typeable/nixpkgs
on master help sign in
freesweep: init at 1.0.1

Freesweep is a console minesweeper game.

commitc09608f6a8a51e16a3be55626931066a73ef2593 authorKier Davis <kierdavis@gmail.com> dateFri 24 Nov 2017, 00:24 (9 years ago) parent9c048f4
2 files changed+37
pkgs/games/freesweep/default.nix+35 pkgs/top-level/all-packages.nix+2
pkgs/games/freesweep/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ fetchurl, ncurses, stdenv,
2+ updateAutotoolsGnuConfigScriptsHook }:
3+
4+stdenv.mkDerivation rec {
5+ name = "freesweep-${version}";
6+ version = "1.0.1";
7+
8+ src = fetchurl {
9+ url = "https://github.com/rwestlund/freesweep/archive/v${version}.tar.gz";
10+ sha256 = "0l2kf14558lsq9qd2hs0kcyn9bbl1jdbzwrvcs6mnyjl7zpizcpj";
11+ };
12+
13+ nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];
14+ buildInputs = [ ncurses ];
15+
16+ preConfigure = ''
17+ configureFlags="$configureFlags --with-prefsdir=$out/share"
18+ '';
19+
20+ installPhase = ''
21+ runHook preInstall
22+ install -D -m 0555 freesweep $out/bin/freesweep
23+ install -D -m 0444 sweeprc $out/share/sweeprc
24+ install -D -m 0444 freesweep.6 $out/share/man/man6/freesweep.6
25+ runHook postInstall
26+ '';
27+
28+ meta = with stdenv.lib; {
29+ description = "A console minesweeper-style game written in C for Unix-like systems";
30+ homepage = https://github.com/rwestlund/freesweep;
31+ license = licenses.gpl2;
32+ maintainers = with maintainers; [ kierdavis ];
33+ platforms = platforms.unix;
34+ };
35+}
pkgs/top-level/all-packages.nix+2
@@ -17875,6 +17875,8 @@ with pkgs;
1787517875 boost = boost160;
1787617876 };
1787717877
17878+ freesweep = callPackage ../games/freesweep { };
17879+
1787817880 frotz = callPackage ../games/frotz { };
1787917881
1788017882 fsg = callPackage ../games/fsg {