nativelink icon indicating copy to clipboard operation
nativelink copied to clipboard

Add NixOS support

Open jaroeichler opened this issue 1 year ago • 2 comments
trafficstars

Description

Use nix-ld to run Bazel.

Fixes #1229

Type of change

Please delete options that aren't relevant.

  • [x] New feature (non-breaking change which adds functionality)
  • [x] This change requires a documentation update

How Has This Been Tested?

Used a pretty minimal system configuration and Bazel test ... passes 51 of 52 tests, integration_tests/running_actions_manager_test fails.

Checklist

  • [x] Updated documentation if needed
  • [ ] Tests added/amended
  • [ ] bazel test //... passes locally
  • [x] PR is contained in a single commit, using git amend see some docs

This change is Reviewable

jaroeichler avatar Aug 28 '24 03:08 jaroeichler

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 28 '24 03:08 CLAassistant

services.envfs.enable is only needed for some scripts that need /bin/bash. Is there a better way?

@SpamDoodler can you please check if this works on your system? I've made a few changes to what we've tried a few days ago. In particular, it works without NIX_CC_USE_RESPONSE_FILE=0 on a pretty minimal system configuration.

jaroeichler avatar Aug 28 '24 04:08 jaroeichler

Sure, adjusted the nixos flake module path to the darwin flake module path

jaroeichler avatar Oct 23 '24 01:10 jaroeichler

@aaronmondal Thanks, didn't notice it when reviewing the diff. Should be fine now.

jaroeichler avatar Oct 25 '24 20:10 jaroeichler