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
factorio: update all versions #73165
Conversation
|
||
libPath = stdenv.lib.makeLibraryPath [ | ||
alsaLib | ||
libpulseaudio |
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.
This addition probably means 17.x won't also need alsaLib. Can you check that, and if it's true, add a TODO to remove it when stable is updated?
Looks good; built and ran fine for me. |
221a945
to
68934fa
Compare
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.
Got two hash mismatches:
hash mismatch in fixed-output derivation '/nix/store/d8kwrnybxd2cnml708xrags1kgdv7z0m-factorio_alpha_x64-0.17.74.tar.xz':
wanted: sha256:0qasp5qm3q6zg4l077dpyyg7gx3mm0zszhvi41g95611hzrksrh6
got: sha256:1p5zjib46d76ngyfwn593a3mhqn71nz9kyyxfv87z8xkhj5a47jf
hash mismatch in fixed-output derivation '/nix/store/hjr3h3ii5rk0wmxgqgd72433211b4rhz-factorio_alpha_x64-0.17.76.tar.xz':
wanted: sha256:13ck7sabnl3k8i4cr4hxzschkvlikwzcpd04rf0iv9j89q08dzly
got: sha256:1qx86n1y5wc769dbr4ciia08zq45c8dss3i6qzvppnz18fs4b4vr
Other than that, builds and runs fine.
and adds libpulseaudio as a dependency
@filalex77: you're right, i've fixed the hashes and updated to the latest release. also built on my own hydra now, to check automatically if i messed up. @Baughn: i've tested this and we need alsa as well as pulse. |
@GrahamcOfBorg build factorio factorio-demo factorio-experimental factorio-headless factorio-headless-experimental Whoops, forgot that Factorio is |
Looks okay. Do I need to tell the bot somehow? |
@elitak These checks are not required to merge - they're just a helpful reference; thus, if you tested it, one of the maintainers should merge it when possible. |
I have a weird error popping up after installing the derivation : Description of the errorAfter building & installing the game and trying to start a new campaign, I get the following popup in game and in the console :
SystemFrom the binary itself :
Steps to reproduce
NotesOf course, the error seems to stem from filesystem permission issues but I launch it as a normal user (the person that owns the home directory) so is this the expected behavior ? Of course, launching the game as root solves the issue as expected but should you have to launch the game as root ? |
Absolutely not, and I'm just assuming that because why would a game ever need to have such privilege?
This is actually a common problem that happens with NixOS. |
This has got some testing in #77288, so I don't think there's much issues. Will merge. |
I will look into how the game developers want bug reports then.
I will try then. I have just no idea which user should be given the permissions. |
@TheSirC You probably want to chown /home/sirc/.factorio/ to your user and group, and make sure all the files have the correct writ-ability. |
@worldofpeace That is what is weird to me because Output of the command
which states that all the files are already in my group's and in my user's permissions and are read and writable. |
@TheSirC The directory that the error pointed doesn't exist according to the output of that command |
@TheSirC @worldofpeace I recently stumbled upon a same error after upgrading factorio to 0.18.18. I did some quick experiments and found that game removes files in As a terrible workaround I just remounted |
Remounting the nix store rw compromises the nix store and should not be done. |
It did seem quite...sketchy (?) What would be the recommended way to circumvent the issue then ? |
@TheSirC. I see three possible ways. Only the third one being correct, imho.
|
If you must write to the /nix/store path, you could have the wrapper script place either a bind mount or overlayfs over the directories that need write permission. Otherwise, I agree that getting the devs upstream to fix the issue is the best course. They are pretty responsive once you reach them. A post on their forums usually gets their attention. |
also adds libpulseaudio, as experimental already needs is and soon
stable will need it too.
Motivation for this change
update
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @Baughn @elitak