Uh oh!
There was an error while loading. Please reload this page.
feat(flake): simplify flake template - #153
Conversation
zimbatm
left a comment
There was a problem hiding this comment.
thanks, I like the idea. I left a few comments, let me know what you think
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
zimbatm
left a comment
There was a problem hiding this comment.
A few more ideas. Almost there.
Uh oh!
There was an error while loading. Please reload this page.
| flakeTOML = inputs: path: eachSystem (system: | ||
| let pkgs = nixpkgs.legacyPackages.${system}.extend self.overlay; | ||
| in { | ||
| devShell = pkgs.devshell.fromTOML path; |
There was a problem hiding this comment.
| flakeTOML=inputs: path: eachSystem(system: | |
| letpkgs=nixpkgs.legacyPackages.${system}.extendself.overlay; | |
| in { | |
| devShell=pkgs.devshell.fromTOMLpath; | |
| flakeTOML=nixpkgs: path: eachSystem(system: | |
| letdevshell=import./.{pkgs=nixpkgs.legacyPackages.${system};} | |
| in { | |
| devShell=devshell.fromTOMLpath; |
Like this, no new instance of nixpkgs is being created. Each instance adds quite a big overhead to nix evaluation. Composition over inheritance :)
There was a problem hiding this comment.
I liked the idea but it didn't work :(
When run `nix develop it says...
error: package "devshell.cli" not found
Changed PR to draft until we solve this
Should I revert?
Uh oh!
There was an error while loading. Please reload this page.
What: Make flake template less verbose
Why: The main focus of project is for non nix users, making template less verbose could reduce friction/fear
How: Add a lib method to flake (like flake-utils) but only for devShell
TODO: Update documentation