-
Notifications
You must be signed in to change notification settings - Fork 12
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
Cleanup Nix code #163
Cleanup Nix code #163
Conversation
dcebedc
to
14ff6c8
Compare
14ff6c8
to
52401b6
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.
looks great! just two things
@@ -0,0 +1,65 @@ | |||
{ |
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 there's still the old version of this function in nix/overlays/lib.nix
, which you can probably delete now
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.
That's in mercury-web-backend
!
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.
Oh, whoops! I didn't notice this was a different repo 😅. Never mind me, then.
flake.nix
Outdated
}: let | ||
eachSystem = nixpkgs.lib.genAttrs (import systems); | ||
|
||
makeNixpkgs = { |
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.
Usually for Nix code I reserve the term "nixpkgs" to refer to the Nixpkgs source code and use the term "pkgs" or "packages" to refer to the actual attribute set of packages instantiated from the Nixpkgs source code. So I'd suggest calling this utility makePkgs
instead of makeNixpkgs
(also because it creates the pkgs
variable, so the name would more closely match the result it is used to create).
Gives us actual packages, makes the definitions all a bit nicer.