-
-
Notifications
You must be signed in to change notification settings - Fork 18k
tigerbeetle: init at unstable-2022-09-30 #194099
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
Conversation
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/1297 |
|
Would love to see this get merged (possibly after an update to the latest weekly snapshot). Who could get some 👀 on this, @dit7ya? |
|
Thanks for updating this PR, @dit7ya. Somewhat randomly pinging you, @trofi and @winterqt, as you've been very helpful with the texinfo PR #215699 and might be able to advise on how to proceed with this PR and possibly get the right people involved. |
I assume you meant to say that the issue is with Zig, and not Tigerbeetle? :) Just to clarify. Either way, we can definitely still land this, no matter the state of the Zig building situation, because you pass In the next day or so, assuming the author of that PR doesn't respond to my comment, I'm going to PR a fix for the reproducibility of the Zig compiler itself (not what it creates), but again, that's not required to land this specific package at all. (Let me know if any of that isn't clear.) |
trofi
left a comment
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 think the PR looks very reasonable. I added a few convention and stylistic suggestions.
From the OfBorg statuses I saw for the previous run, the build was succeeding on the platforms I'd expect it to, though I didn't look at the failures. I'll wait for this run to complete, then I can give you a more complete answer :) |
|
Nice to see all the progress here. Out of curiosity: do folks see value in adding the tigerbeetle clients to nixpkgs? If yes, where would these need to be added? I'm personally particularly interested in the Go and C clients. I see that adding |
|
The When merged to It seems to be incompatible with most recent You can fix is by changing |
trofi
left a comment
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.
Perfect!
Out of curiosity, do you use it yourself? Do you plan to write a nixos module to make it usable as a service? (AFAIU it's a requirement to be able to use it as is).
| , fetchFromGitHub | ||
| , zig_0_9 | ||
| }: | ||
| stdenv.mkDerivation rec { |
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 think we should use the finalAttrs pattern here.
The finalAttrs pattern will let you remove the rec keyword (see its implementation in Nix).
Why is this pattern preferred to rec ?
Let's take this simple code example:
mkDerivation rec {
foo = 1;
bar = foo + 1;
}and then .overrideAttrs(old: { foo = 2; }), you'll get { foo = 2; bar = 2; } while with finalAttrs pattern, it would work correctly because it's a real fixed point.
Let me share a couple of useful links regarding the finalAttrs pattern:
- History: https://discourse.nixos.org/t/avoid-rec-expresions-in-nixpkgs/8293
- Documentation: https://nixos.org/manual/nixpkgs/unstable/#mkderivation-recursive-attributes
- Recent example of implementation: https://github.com/NixOS/nixpkgs/compare/17f96f7b978e61576cfe16136eb418f74fab9952..9e6ea843e473d34d4f379b8b0d8ef0425a06defe
Feel free to reach out if you need some assistance.
| runHook postInstall | ||
| ''; | ||
|
|
||
| meta = with lib; { |
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 remove with lib;
|
superseded by #275556 |
Description of changes
A distributed financial accounting database designed for mission critical safety and performance.
https://tigerbeetle.com/
Things done
sandbox = trueset 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/)nixos/doc/manual/md-to-db.shto update generated release notes