Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 6 commits into from
May 6, 2024
Merged

chore: add build targets to nix flake #13186

merged 6 commits into from
May 6, 2024

Conversation

kylecarbs
Copy link
Member

@kylecarbs kylecarbs commented May 6, 2024

Enables nix build github:coder/coder[/branch]#linux_amd64!

Enables `nix build github:coder/coder#main`!
@kylecarbs kylecarbs requested a review from code-asher May 6, 2024 19:46
@kylecarbs kylecarbs self-assigned this May 6, 2024
@matifali
Copy link
Member

matifali commented May 6, 2024

@kylecarbs
Copy link
Member Author

@matifali with what?

@kylecarbs
Copy link
Member Author

@matifali fixed!

@matifali
Copy link
Member

matifali commented May 6, 2024

Copy link
Member

@code-asher code-asher left a 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; };
Copy link
Member

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!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, remove

@kylecarbs kylecarbs merged commit 3e31187 into main May 6, 2024
29 of 31 checks passed
@kylecarbs kylecarbs deleted the flake branch May 6, 2024 22:21
@github-actions github-actions bot locked and limited conversation to collaborators May 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants