-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Minor cleanup of flake.nix #3110
Conversation
If permitted, I'd like to add a shell hook that executes the default shell using the |
I disagree with this, perhaps check out direnv if you haven't already? |
@itslychee I have specified the three major systems, do you reckon there's anything else to add? |
Don't forget to change |
Also since |
Could you clarify that a bit further? The platforms list does contain "x86_64-linux" but it has come to my attention that "x86_64-darwin" is not included in the list, I suppose that is the one I should add. |
Oops yeah that's the one, something possessed me to write linux instead 😭 |
] (system: function nixpkgs.legacyPackages.${system}); | ||
in { | ||
devShells = forAllSystems (pkgs: { | ||
default = with pkgs; mkShell { |
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.
why remove the pkgs prefix ? it's just churn . If anything it makes perf and linter work harder please revert
I get that one would prefer to remove the dependency to |
The point here is to remove a dependency that can be easily replaced with functions of nixpkgs' library, and to remove noise from the lockfile. It also makes it more clear how outputs are defined instead of having
How is |
needs a rebase, the |
can be closed as #3300 was merged. |
used
with pkgs;
to simplify statements referring to it in the scope of mkshell. Restructured input declaration to follow the typical structure.I am unsure whether I should mark this with doc: or not, sorry