summary refs log tree commit diff
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-11-12 14:31:20 +0000
committerGitHub <noreply@github.com>2017-11-12 14:31:20 +0000
commit5e698100b7f5b60490ef869a8fe80b69891c9f37 (patch)
tree089a710d1cbbe1fc0cd639d78da8542c20b88722
parentdd1a9fa915b923931d07665e3198aae3178b40e6 (diff)
parentebd064b76142d903bd15bf48d5671a94229cbc35 (diff)
downloadnixlib-5e698100b7f5b60490ef869a8fe80b69891c9f37.tar
nixlib-5e698100b7f5b60490ef869a8fe80b69891c9f37.tar.gz
nixlib-5e698100b7f5b60490ef869a8fe80b69891c9f37.tar.bz2
nixlib-5e698100b7f5b60490ef869a8fe80b69891c9f37.tar.lz
nixlib-5e698100b7f5b60490ef869a8fe80b69891c9f37.tar.xz
nixlib-5e698100b7f5b60490ef869a8fe80b69891c9f37.tar.zst
nixlib-5e698100b7f5b60490ef869a8fe80b69891c9f37.zip
Merge pull request #31562 from dotlambda/braincurses
braincurses: init at 1.1.0
-rw-r--r--pkgs/games/braincurses/default.nix28
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/games/braincurses/default.nix b/pkgs/games/braincurses/default.nix
new file mode 100644
index 000000000000..808d7e378074
--- /dev/null
+++ b/pkgs/games/braincurses/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchFromGitHub, ncurses }:
+
+stdenv.mkDerivation rec {
+  name = "braincurses-${version}";
+  version = "1.1.0";
+
+  src = fetchFromGitHub {
+    owner = "bderrly";
+    repo = "braincurses";
+    rev = version;
+    sha256 = "0gpny9wrb0zj3lr7iarlgn9j4367awj09v3hhxz9r9a6yhk4anf5";
+  };
+
+  buildInputs = [ ncurses ];
+
+  # There is no install target in the Makefile
+  installPhase = ''
+    install -Dt $out/bin braincurses
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/bderrly/braincurses;
+    description = "A version of the classic game Mastermind";
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ dotlambda ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 0a5bd2095b8f..f9f9d16514cd 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -17678,6 +17678,8 @@ with pkgs;
 
   blobby = callPackage ../games/blobby { };
 
+  braincurses = callPackage ../games/braincurses { };
+
   brogue = callPackage ../games/brogue { };
 
   bsdgames = callPackage ../games/bsdgames { };