-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
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
fallout-ce: init at 1.0.0 #239450
fallout-ce: init at 1.0.0 #239450
Conversation
177abf7
to
bd3b0bf
Compare
@SuperSandro2000 fpattern PR #240569 |
eb9192e
to
bc8b9ed
Compare
09fc7d2
to
f9714a1
Compare
Doesn't start for me
|
I haven't seen that error yet, are you on x86_64? Remember the game needs the original assets, and further is particular about the casing of the file names (they describe this here). I've tested it with the copy I have from Steam, but also from this copy on the Archive. The correct way is to edit the curl -LO 'https://archive.org/download/FalloutAPostNuclearRolePlayingGameUSA/Fallout%20%28USA%29.zip'
unar Fallout%20%28USA%29.zip
unar "Fallout%20%28USA%29/Fallout - A Post Nuclear Role Playing Game (USA).bin"
cd "Fallout - A Post Nuclear Role Playing Game (USA)"
ln MASTER.DAT master.dat
ln CRITTER.DAT critter.dat
ln -s DATA data
nix-shell -I nixpkgs=/src/nixpkgs -p fallout-ce --command fallout-ce |
Yes but I didn't do any of the setup steps. We should add a longDescription with a link to upstream or instructions how to get the game running. Or maybe we do a little setup script which guides you through it or takes a path as an argument. |
How about: " |
There are other programs, that require much more setup. Those do not have such a " Also, there is no such thing for eg. In my opinion, people who want to use this software usually know in advance that they need the original game data, and if we want to provide helpers for setting everything up, we can provide them in another PR. This details should not block this PR to get the package in. This extra PR could provide a wrapper and/or a module. |
Yes there are: #208078 My take on this again would be to also provide a wrapper that chdir into ~/.local/share/fallout-ce and documents this somewhere, because that's how many other programs do it: #208078 (comment), I can also name OpenXcom, doom and quake ports, the Force Engine, gemrb, etc ... They normally all expect you to put the assets into some directory and read those at runtime. Wargus was apparently an exception because it needs the assets at compile-time. sm64ex would be another such example. |
No it's fine to have me as maintainer, I would have eventually created a PR for this too had you not done it. |
* review NixOS#239450 * Apply suggestions from code review --------- Co-authored-by: Hugh O'Brien <github@hughobrien.ie>
I used |
Looks like there is the same problem at https://github.com/NixOS/nixpkgs/pull/248915/files (default.nix line 54). It got approved so I suppose right now there is no better way ... |
I also noticed a problem: the wrapper ends up in |
Good catches, fixed both I think by cribbing from Rise of the Triad. unwrapped binary goes to libexec and we do the |
Other than that it looks good to me |
I just forgot something: you should squash all these commits into a single one with message "fallout-ce: init at 1.0.0". At least that would be if this PR only added one package. This should also include fallout2-ce somehow ... Not sure how it should be done, but there is definitively a need for squashing some commits. |
Yes absolutely, I'm just waiting for other feedback so I can avoid doing it twice. |
Well I was re-requested for a review because of the rebasing, so I suppose you didn't loose your time, but instead avoided the need for 2 reviews from others :p |
Polite request for a merge if everyone is satisfied. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1091 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1130 |
Thank you @amaxine ! Please allow me to push my luck and invite you to take a look at this dosbox-x PR |
Description of changes
Introduce fallout-ce, an open source re-implementation of the classic game.
Note this is the engine only, the original game assets are still required (available on digital platforms). Build steps are adapted from their CI.
See also: fallout2-ce PR
REVIEW REQUESTS:
This game uses the 'Sustainable Use License' which I do not see as listed inEdit: I've made a PR for the licence.lib/licences.nix
- how should we proceed? Here is the only other usage of it withinnixpkgs
.fallout-ce
but the project is brandedfallout1-ce
, I have hewn to the original name but am open.substituteInPlace
handle the${foo}
strings in the Makefile without triggering nix interpolation, so used a two pass process instead. I'm sure there's a better way of doing this.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)