tweag / tweag/rules_nixpkgs

Provide nix Toolchain

Open
#331 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

P3 type: feature request
Dominant language
Starlark
Stars
387
Forks
103
Avg merge
1d 1h
Merged PRs (30d)
14

Description

Is your feature request related to a problem? Please describe.
Not entirely, my request is related to a feature that would allow for more use-cases.

Describe the solution you'd like
I would like this repo to provide a nix binary toolchain. This would allow the execution of nix binary commands from inside bazel. I would like this toolchain to offer linux (amd64) and macOS (amd64 and arm64) binaries. At the moment it appears that rules_nixpkgs is meant to be run via the nix binary, which in turn will execute bazel -- Our group would like to run a bazel binary, which in turn would run a nix binary in a bazel sandbox.

Describe alternatives you've considered
Our group wouldn't like to require a nix binary in our developers local environments, this could be difficult to maintain version parity across our ecosystem.

Additional context
None at this time.

Thank you so much for this repo! 😸

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the repository's existing Bazel and rules_nixpkgs integration points first; the issue does not name specific files, tests, or entry points. Define the toolchain's packaging and execution behavior, then verify that it can run Nix binary commands inside Bazel sandboxes for Linux amd64 and macOS amd64 and arm64 without a local Nix installation.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.