diff options
author | Free Potion <42352817+freepotion@users.noreply.github.com> | 2019-05-25 13:57:43 +0300 |
---|---|---|
committer | Free Potion <42352817+freepotion@users.noreply.github.com> | 2019-05-25 13:57:43 +0300 |
commit | 90ad0fd74312ad6f10071739557223cfdfaa4a5e (patch) | |
tree | 49a83f1b31d3205a98b41ee557c5c75f94c4065d | |
parent | fa05f332ebdf880abf147ad481288b704deb1367 (diff) | |
download | nixpkgs-90ad0fd74312ad6f10071739557223cfdfaa4a5e.tar nixpkgs-90ad0fd74312ad6f10071739557223cfdfaa4a5e.tar.gz nixpkgs-90ad0fd74312ad6f10071739557223cfdfaa4a5e.tar.bz2 nixpkgs-90ad0fd74312ad6f10071739557223cfdfaa4a5e.tar.lz nixpkgs-90ad0fd74312ad6f10071739557223cfdfaa4a5e.tar.xz nixpkgs-90ad0fd74312ad6f10071739557223cfdfaa4a5e.tar.zst nixpkgs-90ad0fd74312ad6f10071739557223cfdfaa4a5e.zip |
boohu: switching to termbox-go build
This is necessary for a better user experience. File with go dependencies (deps.nix) was added. Minor changes: name replaced by pname, quotes for url.
-rw-r--r-- | pkgs/games/boohu/default.nix | 10 | ||||
-rw-r--r-- | pkgs/games/boohu/deps.nix | 20 |
2 files changed, 25 insertions, 5 deletions
diff --git a/pkgs/games/boohu/default.nix b/pkgs/games/boohu/default.nix index 1e70a92066d..e658ef9f5cb 100644 --- a/pkgs/games/boohu/default.nix +++ b/pkgs/games/boohu/default.nix @@ -2,29 +2,29 @@ buildGoPackage rec { - name = "boohu-${version}"; + pname = "boohu"; version = "0.12.0"; goPackagePath = "git.tuxfamily.org/boohu/boohu.git"; src = fetchurl { - url = "https://download.tuxfamily.org/boohu/downloads/boohu-${version}.tar.gz"; + url = "https://download.tuxfamily.org/boohu/downloads/${pname}-${version}.tar.gz"; sha256 = "0nf3xj3lda8279cqvjv5c3vpsb7d2kynwwna5yrsy7gq8c9n4rh8"; }; - buildFlags = "--tags ansi"; + goDeps = ./deps.nix; postInstall = "mv $bin/bin/boohu.git $bin/bin/boohu"; meta = with stdenv.lib; { - description = "A new roguelike game"; + description = "A new coffee-break roguelike game"; longDescription = '' Break Out Of Hareka's Underground (Boohu) is a roguelike game mainly inspired from DCSS and its tavern, with some ideas from Brogue, but aiming for very short games, almost no character building, and a simplified inventory. ''; - homepage = https://download.tuxfamily.org/boohu/index.html; + homepage = "https://download.tuxfamily.org/boohu/index.html"; license = licenses.isc; platforms = platforms.unix; maintainers = with maintainers; [freepotion]; diff --git a/pkgs/games/boohu/deps.nix b/pkgs/games/boohu/deps.nix new file mode 100644 index 00000000000..a785567addd --- /dev/null +++ b/pkgs/games/boohu/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"; + }; + } +] |