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
GZDoom 4.3.3 -> 4.4.2 #90690
GZDoom 4.3.3 -> 4.4.2 #90690
Conversation
4.4.0 increased the ZScript version number, GZDoom 4.4.1 and 4.4.2 have some bugfixes.
Hello Derpford and congratulations on your first pull request! You are welcome! :-) I also don't know about home-manager, but you can test your update by:
I'll do this now and report back my findings. :-) |
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.
Hi, welcome! Thanks for contributing! There are a couple problems with your PR, however:
-
Sorry, update what to 4.4.2? ;)
Please change your commit message to follow our contributing guidelines (located here):
gzdoom: 4.3.3 -> 4.4.2
. -
Additionally, how did you get that sha256? I get a hash mismatch:
hash mismatch in fixed-output derivation '/nix/store/b7pajg3z67jnsqj5656cclv154ninxjr-source': wanted: sha256:0x06069ywl3mndspyi4pq91myivpf3jkclwagbcvcd48zapfkvfh got: sha256:1xkkmbsdv64wyb9r2fv5mwyqw0bjryk528jghdrh47pndmjs9a38 cannot build derivation '/nix/store/sfr086iqh5kczy7lsxrnr7fb4nyk0yg8-gzdoom-4.4.2.drv': 1 dependencies couldn't be built cannot build derivation '/nix/store/a2szlx675q1669ppd9fgil20j0yxfli3-env.drv': 1 dependencies couldn't be built [0 built (1 failed), 7 copied (145.8 MiB), 115.0 MiB DL] error: build of '/nix/store/a2szlx675q1669ppd9fgil20j0yxfli3-env.drv' failed https://github.com/NixOS/nixpkgs/pull/90690 1 package failed to build: gzdoom
And to answer your question on how to build this yourself:
cd /path/to/your/nixpkgs/checkout
- Make your changes
nix-build -A gzdoom
to verify that the gzdoom attr still builds after your change
This will create a result
symlink to the built store path, where you can then run the binary from result/bin/binary
.
Re: that hash mismatch, I grabbed the hash by running nix-prefetch-url on this URL: |
Ah, yeah. That's because |
I confirm that I get the same hash mismatch which cole-h reported. Fixing that, I run into an error concerning As I understand it, |
I'm in over my head on this, I'm afraid. Let me link this to some friends of mine, who've been teaching me how to work with Nix. |
Old hash was done without `--unpack` option, resulting in a mismatch.
This fixes the issue with `zmusic` not being brought in as a dependency.
Finally got back to this. Apparently |
Since zmusic isn't actually a submodule, we have to derive it ourselves and pass it as a buildInput.
Apparently this is how they expect zmusic to be added. Why this isn't a submodule, I don't know.
Well, I've tried handling zmusic as a separate derivation, I've tried merging it into the source tree, but each time I get the same "no such file or directory" error. |
Credit to Open Skies for fixing this. Turns out the paths edited in the `gzdoom` derivation were for zmusic, which needs these edits to be made so that it looks in nix-friendly places for its stuff.
Open Skies worked out a possible solution, testing it now... |
Successfully built this version on nixos! It's working perfectly, from what I've seen. |
nice! thanks! |
4.4.0 increased the ZScript version number, GZDoom 4.4.1 and 4.4.2 have some bugfixes. I was unable to test this at all because I can't figure out how to get home-manager to install GZDoom with a specified version attribute.
Motivation for this change
Keeping up with current release version.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)