-
Notifications
You must be signed in to change notification settings - Fork 887
chore: add build targets to nix flake #13186
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
Conversation
Enables `nix build github:coder/coder#main`!
@kylecarbs, could you also update https://github.com/coder/coder/blob/main/dogfood/Dockerfile.nix? |
@matifali with what? |
@matifali fixed! |
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.
Very cool!
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
# Workaround for: terraform has an unfree license (‘bsl11’), refusing to evaluate. | ||
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; }; | ||
formatter = pkgs.nixpkgs-fmt; | ||
nodejs = pkgs.nodejs-18_x; | ||
yarn = pkgs.yarn.override { inherit nodejs; }; |
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.
We might want to either remove yarn
from the packages below (since otherwise it could use the wrong Node version) or put this line back. Maybe remove makes more sense since pnpm
should be used anyway!
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.
Yeah, remove
Enables
nix build github:coder/coder[/branch]#linux_amd64
!