-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Upgrade todomvc-nix into flake features. #12
Conversation
…ake.nix, and add go and rust binary to the development environment
…ll in shell.nix, and add sqitch for db migration
shell.nix
Outdated
let | ||
pkgs = import ./nix {}; | ||
in | ||
{ pkgs }: |
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.
this breaks when running nix-shell
because there is no default value for pkgs
.
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.
The best way to do this is similar to what you're doing in https://github.com/nix-community/nixpkgs-fmt/blob/master/shell.nix, but I still need to create mkshell.nix
and import it here: https://github.com/nix-community/nixpkgs-fmt/blob/master/flake.nix#L34
I don't know, should we retain the non-flake-enabled Nix versions
, given that we want to show Nix user how to use flake
?
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 have update default.nix
and shell.nix
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
This is my first attempt to refactor all
todomvc-nix
code to use the flake feature. It's based on this #10 as a starter.What changed?
.devcontainer
and.vscode/setting.json
so that VSCode's user can useremote-container
plugin when playing with this project.envrc
to make direnv work in the projectREADME.md
and addDocs
folder to narrow each architecture explanation..nix
file for future replacement (GitHub Actions in mind)