summary refs log tree commit diff
path: root/pkgs/games/freesweep
diff options
context:
space:
mode:
authorKier Davis <kierdavis@gmail.com>2017-11-24 00:24:19 +0000
committerKier Davis <kierdavis@gmail.com>2017-11-24 00:34:28 +0000
commitc09608f6a8a51e16a3be55626931066a73ef2593 (patch)
tree63d568adac6125b2d73b762aba983fdcbd1b9579 /pkgs/games/freesweep
parent9c048f4fb66adc33c6b379f2edefcb615fd53de6 (diff)
downloadnixlib-c09608f6a8a51e16a3be55626931066a73ef2593.tar
nixlib-c09608f6a8a51e16a3be55626931066a73ef2593.tar.gz
nixlib-c09608f6a8a51e16a3be55626931066a73ef2593.tar.bz2
nixlib-c09608f6a8a51e16a3be55626931066a73ef2593.tar.lz
nixlib-c09608f6a8a51e16a3be55626931066a73ef2593.tar.xz
nixlib-c09608f6a8a51e16a3be55626931066a73ef2593.tar.zst
nixlib-c09608f6a8a51e16a3be55626931066a73ef2593.zip
freesweep: init at 1.0.1
Freesweep is a console minesweeper game.
Diffstat (limited to 'pkgs/games/freesweep')
-rw-r--r--pkgs/games/freesweep/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/games/freesweep/default.nix b/pkgs/games/freesweep/default.nix
new file mode 100644
index 000000000000..9d07eda74b81
--- /dev/null
+++ b/pkgs/games/freesweep/default.nix
@@ -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;
+  };
+}