git.iko.soy/typeable/nixpkgs
on master help sign in
boohu: init at 0.10.0
commitaf08956950a3aa017d99fce8bb00ebbaa9e7b492 authorFree Potion <42352817+freepotion@users.noreply.github.com> dateWed 3 Oct 2018, 03:23 (8 years ago) parent9bfd864
3 files changed+62
pkgs/games/boohu/default.nix+38 pkgs/games/boohu/deps.nix+20 pkgs/top-level/all-packages.nix+4
pkgs/games/boohu/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{stdenv, lib, fetchurl, buildGoPackage, ansiTag ? false}:
2+
3+buildGoPackage rec {
4+
5+ name = if ansiTag then "boohu-ansi-${version}" else "boohu-${version}";
6+ version = "0.10.0";
7+
8+ goPackagePath = "git.tuxfamily.org/boohu/boohu.git";
9+
10+ src = fetchurl {
11+ url = "https://download.tuxfamily.org/boohu/downloads/boohu-${version}.tar.gz";
12+ sha256 = "a4d1fc488cfeecbe0a5e9be1836d680951941014f926351692a8dbed9042eba6";
13+ };
14+
15+ goDeps = ./deps.nix;
16+
17+ # If ansiTag is true, the "--tags ansi" will be passed
18+ buildFlags = if ansiTag then "--tags ansi" else "";
19+
20+ # If ansiTag is true, binary output file name will be "boohu-ansi".
21+ # Otherwise it will be "boohu".
22+ postInstall = if ansiTag then "mv $bin/bin/boohu.git $bin/bin/boohu-ansi"
23+ else "mv $bin/bin/boohu.git $bin/bin/boohu";
24+
25+ meta = with stdenv.lib; {
26+ description = "A new roguelike game";
27+ longDescription = ''
28+ Break Out Of Hareka's Underground (Boohu) is a roguelike game mainly
29+ inspired from DCSS and its tavern, with some ideas from Brogue, but
30+ aiming for very short games, almost no character building, and a
31+ simplified inventory.
32+ '';
33+ homepage = https://download.tuxfamily.org/boohu/index.html;
34+ license = licenses.isc;
35+ platforms = platforms.unix;
36+ maintainers = with maintainers; [freepotion];
37+ };
38+}
pkgs/games/boohu/deps.nixnew file+20
@@ -0,0 +1,20 @@
1+[
2+ {
3+ goPackagePath = "github.com/nsf/termbox-go";
4+ fetch = {
5+ type = "git";
6+ url = "https://github.com/nsf/termbox-go";
7+ rev = "b66b20ab708e289ff1eb3e218478302e6aec28ce";
8+ sha256 = "0wrgnwfdxrspni5q15vzr5q1bxnzb7m6q4xjhllcyddgn2zqprsa";
9+ };
10+ }
11+ {
12+ goPackagePath = "github.com/mattn/go-runewidth";
13+ fetch = {
14+ type = "git";
15+ url = "https://github.com/mattn/go-runewidth";
16+ rev = "ce7b0b5c7b45a81508558cd1dba6bb1e4ddb51bb";
17+ sha256 = "0lc39b6xrxv7h3v3y1kgz49cgi5qxwlygs715aam6ba35m48yi7g";
18+ };
19+ }
20+]
pkgs/top-level/all-packages.nix+4
@@ -19808,6 +19808,10 @@ with pkgs;
1980819808
1980919809 blobby = callPackage ../games/blobby { };
1981019810
19811+ boohu = callPackage ../games/boohu { };
19812+
19813+ boohu-ansi = callPackage ../games/boohu { ansiTag = true; };
19814+
1981119815 braincurses = callPackage ../games/braincurses { };
1981219816
1981319817 brogue = callPackage ../games/brogue { };