Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

nix: patch bazel_7 with hardcoded bin paths#59359

Merged
Strum355 merged 1 commit intomainfrom
nsc/nix-bazel-7-fix
Jan 16, 2024
Merged

nix: patch bazel_7 with hardcoded bin paths#59359
Strum355 merged 1 commit intomainfrom
nsc/nix-bazel-7-fix

Conversation

@Strum355
Copy link
Copy Markdown
Contributor

@Strum355 Strum355 commented Jan 5, 2024

bazel (and its community of rules) is a bit of a mess when it comes to passing around env values, including $PATH, resulting in some actions not receiving the $PATH value set via --action_path=PATH=... that we rely on. Bazel 6 in nixpkgs had the following patch that hardcodes a set of packages to include in that case, which is currently missing from Bazel 7 in nixpkgs, so we (temporarily, hopefully) reintroduce that patch locally.

See: NixOS/nixpkgs#262152 (comment) and NixOS/nixpkgs#94222 for some reading

I plan to move more bazel stuff out of shell.nix perhaps, into bazel.nix, as its a tad messy all-in-one

Test plan

bazel build //client/web/dist is successful

@Strum355 Strum355 added the nix For Nix(OS) related issues/PRs label Jan 5, 2024
@Strum355 Strum355 self-assigned this Jan 5, 2024
@cla-bot cla-bot Bot added the cla-signed label Jan 5, 2024
@Strum355 Strum355 merged commit 694f174 into main Jan 16, 2024
@Strum355 Strum355 deleted the nsc/nix-bazel-7-fix branch January 16, 2024 20:58
@malt3 malt3 mentioned this pull request Feb 16, 2024
13 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed nix For Nix(OS) related issues/PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants