summary refs log tree commit diff
path: root/pkgs/games/angband/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/angband/default.nix')
-rw-r--r--pkgs/games/angband/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/games/angband/default.nix b/pkgs/games/angband/default.nix
new file mode 100644
index 00000000000..3f706b42c32
--- /dev/null
+++ b/pkgs/games/angband/default.nix
@@ -0,0 +1,24 @@
+{ lib, stdenv, fetchFromGitHub, autoreconfHook, ncurses5 }:
+
+stdenv.mkDerivation rec {
+  pname = "angband";
+  version = "4.2.4";
+
+  src = fetchFromGitHub {
+    owner = "angband";
+    repo = "angband";
+    rev = version;
+    sha256 = "sha256-Fp3BGCZYYdQCKXOLYsT4zzlibNRlbELZi26ofrbGGPQ=";
+  };
+
+  nativeBuildInputs = [ autoreconfHook ];
+  buildInputs = [ ncurses5 ];
+  installFlags = [ "bindir=$(out)/bin" ];
+
+  meta = with lib; {
+    homepage = "https://angband.github.io/angband";
+    description = "A single-player roguelike dungeon exploration game";
+    maintainers = [ maintainers.chattered ];
+    license = licenses.gpl2;
+  };
+}