summary refs log tree commit diff
path: root/pkgs/games/harmonist
diff options
context:
space:
mode:
authorFree Potion <42352817+freepotion@users.noreply.github.com>2019-05-25 13:14:43 +0300
committerFree Potion <42352817+freepotion@users.noreply.github.com>2019-05-25 13:14:43 +0300
commite38110ab6c5fcf2195e84957f884582272d33c10 (patch)
tree74a5a2bbfa3d62a63a3e45350f077f6a62da98af /pkgs/games/harmonist
parentf0adad2d01a436c8b7072d126259dc41610d87c6 (diff)
downloadnixpkgs-e38110ab6c5fcf2195e84957f884582272d33c10.tar
nixpkgs-e38110ab6c5fcf2195e84957f884582272d33c10.tar.gz
nixpkgs-e38110ab6c5fcf2195e84957f884582272d33c10.tar.bz2
nixpkgs-e38110ab6c5fcf2195e84957f884582272d33c10.tar.lz
nixpkgs-e38110ab6c5fcf2195e84957f884582272d33c10.tar.xz
nixpkgs-e38110ab6c5fcf2195e84957f884582272d33c10.tar.zst
nixpkgs-e38110ab6c5fcf2195e84957f884582272d33c10.zip
harmonist: init at 0.1
Diffstat (limited to 'pkgs/games/harmonist')
-rw-r--r--pkgs/games/harmonist/default.nix34
-rw-r--r--pkgs/games/harmonist/deps.nix20
2 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/games/harmonist/default.nix b/pkgs/games/harmonist/default.nix
new file mode 100644
index 00000000000..cca17ceee5a
--- /dev/null
+++ b/pkgs/games/harmonist/default.nix
@@ -0,0 +1,34 @@
+{stdenv, fetchurl, buildGoPackage}:
+
+buildGoPackage rec {
+
+  pname = "harmonist";
+  version = "0.1";
+
+  goPackagePath = "git.tuxfamily.org/harmonist/harmonist.git";
+
+  src = fetchurl {
+    url = "https://download.tuxfamily.org/harmonist/releases/${pname}-${version}.tar.gz";
+    sha256 = "1cvhfvscd80qz95pqkblnyjhz1l87k7y6vmzyzap893mpjk9a3pm";
+  };
+
+  goDeps = ./deps.nix;
+
+  postInstall = "mv $bin/bin/harmonist.git $bin/bin/harmonist";
+
+  meta = with stdenv.lib; {
+    description = "A stealth coffee-break roguelike game";
+    longDescription = ''
+      Harmonist is a stealth coffee-break roguelike game. The game has a heavy
+      focus on tactical positioning, light and noise mechanisms, making use of
+      various terrain types and cones of view for monsters. Aiming for a
+      replayable streamlined experience, the game avoids complex inventory
+      management and character building, relying on items and player
+      adaptability for character progression.
+    '';
+    homepage = "https://harmonist.tuxfamily.org/";
+    license = licenses.isc;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [freepotion];
+  };
+}
diff --git a/pkgs/games/harmonist/deps.nix b/pkgs/games/harmonist/deps.nix
new file mode 100644
index 00000000000..a785567addd
--- /dev/null
+++ b/pkgs/games/harmonist/deps.nix
@@ -0,0 +1,20 @@
+[
+  {
+    goPackagePath = "github.com/nsf/termbox-go";
+    fetch = {
+      type = "git";
+      url = "https://github.com/nsf/termbox-go";
+      rev = "288510b9734e30e7966ec2f22b87c5f8e67345e3";
+      sha256 = "0hdyisfaf8yb55h3p03p4sbq19546mp9fy28f2kn659mycmhxqk4";
+    };
+  }
+  {
+    goPackagePath = "github.com/mattn/go-runewidth";
+    fetch = {
+      type = "git";
+      url = "https://github.com/mattn/go-runewidth";
+      rev = "703b5e6b11ae25aeb2af9ebb5d5fdf8fa2575211";
+      sha256 = "0znpyz71gajx3g0j2zp63nhjj2c07g16885vxv4ykwnrfmzbgk4w";
+    };
+  }
+]