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.
This commit is contained in:
Free Potion
2019-05-25 13:57:43 +03:00
parent fa05f332eb
commit 90ad0fd743
2 changed files with 25 additions and 5 deletions
+5 -5
View File
@@ -2,29 +2,29 @@
buildGoPackage rec { buildGoPackage rec {
name = "boohu-${version}"; pname = "boohu";
version = "0.12.0"; version = "0.12.0";
goPackagePath = "git.tuxfamily.org/boohu/boohu.git"; goPackagePath = "git.tuxfamily.org/boohu/boohu.git";
src = fetchurl { 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"; sha256 = "0nf3xj3lda8279cqvjv5c3vpsb7d2kynwwna5yrsy7gq8c9n4rh8";
}; };
buildFlags = "--tags ansi"; goDeps = ./deps.nix;
postInstall = "mv $bin/bin/boohu.git $bin/bin/boohu"; postInstall = "mv $bin/bin/boohu.git $bin/bin/boohu";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A new roguelike game"; description = "A new coffee-break roguelike game";
longDescription = '' longDescription = ''
Break Out Of Hareka's Underground (Boohu) is a roguelike game mainly Break Out Of Hareka's Underground (Boohu) is a roguelike game mainly
inspired from DCSS and its tavern, with some ideas from Brogue, but inspired from DCSS and its tavern, with some ideas from Brogue, but
aiming for very short games, almost no character building, and a aiming for very short games, almost no character building, and a
simplified inventory. simplified inventory.
''; '';
homepage = https://download.tuxfamily.org/boohu/index.html; homepage = "https://download.tuxfamily.org/boohu/index.html";
license = licenses.isc; license = licenses.isc;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [freepotion]; maintainers = with maintainers; [freepotion];
+20
View File
@@ -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";
};
}
]