New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boohu: init at 0.10.0 #47381
boohu: init at 0.10.0 #47381
Conversation
@GrahamcOfBorg build boohu |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: boohu Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: boohu Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: boohu Partial log (click to expand)
|
@matthewbauer Is my pull request okay? 👽 |
pkgs/games/boohu/default.nix
Outdated
goPackagePath = "git.tuxfamily.org/boohu/boohu.git"; | ||
|
||
src = fetchurl { | ||
url = "https://download.tuxfamily.org/boohu/downloads/boohu-0.10.0.tar.gz"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you replace 0.10.0
with ${version}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although I don't have permissions to merge it myself. ping @infinisil @xeji @Mic92.
pkgs/games/boohu/default.nix
Outdated
''; | ||
homepage = https://download.tuxfamily.org/boohu/index.html; | ||
license = licenses.isc; | ||
platforms = platforms.linux; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@freepotion this is a Go app, shouldn't be working on Mac as well? Maybe you should put platforms.unix
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Although I don't use a Mac, so I can't fully test the result.
@@ -0,0 +1,38 @@ | |||
{stdenv, lib, fetchurl, buildGoPackage, ansiTag ? false}: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does ansi
do? And why do we need both versions in nixpkgs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The basic version uses curses-like library termbox-go.
Ansi version does not need external dependencies. It is more portable and should work on all POSIX systems using stty
.
This is similar to nethack
and nethack-x11
. Normal users don't have to deal with complicated things to build a package with this option. They'll just be able to choose boohu-ansi
instead.
Perhaps I should remove platforms
? The package seems to be very portable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can assume that cgo
is present on all platforms we support. After all nix is also written in c++. That's why I would only include the version using tcell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we can remove platforms
depends whether buildGoPackage
sets a default value. Otherwise it will be not build on hydra.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still not convinced we need both versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please decide on one. This is not like nethack where one has the choice between a headless version and a x11 version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you. PR is here 😎
@GrahamcOfBorg build boohu boohu-ansi |
Success on x86_64-linux (full log) Attempted: boohu, boohu-ansi Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: boohu, boohu-ansi Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: boohu, boohu-ansi Partial log (click to expand)
|
@matthewbauer Thanks! 👽 |
Motivation for this change
A new roguelike is here!
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)