Skip to content
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

Merged
merged 39 commits into from
Dec 7, 2020
Merged

Upgrade todomvc-nix into flake features. #12

merged 39 commits into from
Dec 7, 2020

Conversation

Rizary
Copy link
Collaborator

@Rizary Rizary commented Nov 30, 2020

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?

  1. Adding flake style development into the project
  2. I add .devcontainer and .vscode/setting.json so that VSCode's user can use remote-container plugin when playing with this project
  3. I add direnv .envrc to make direnv work in the project
  4. Clean up README.md and add Docs folder to narrow each architecture explanation.
  5. Group the project example per language for clarity and easy project management
  6. Adding full-stack Haskell and Rust todomvc
  7. Delete all CI/CD related scripts and .nix file for future replacement (GitHub Actions in mind)

rizary and others added 30 commits September 20, 2020 08:29
…ake.nix, and add go and rust binary to the development environment
…ll in shell.nix, and add sqitch for db migration
@Rizary Rizary requested a review from zimbatm November 30, 2020 23:44
.devcontainer/Dockerfile Outdated Show resolved Hide resolved
.envrc Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
devshell.toml Outdated Show resolved Hide resolved
devshell.toml Outdated Show resolved Hide resolved
flake.lock Outdated Show resolved Hide resolved
shell.nix Outdated
let
pkgs = import ./nix {};
in
{ pkgs }:
Copy link
Member

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.

Copy link
Collaborator Author

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?

Copy link
Collaborator Author

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

shell.nix Outdated Show resolved Hide resolved
Rizary and others added 2 commits December 2, 2020 20:08
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
@Rizary Rizary requested a review from zimbatm December 3, 2020 22:23
@Rizary Rizary merged commit 65e5276 into nix-community:master Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants