diff --git a/DEV_DOCS.md b/DEV_DOCS.md index a6d8680883..3d2f68b990 100644 --- a/DEV_DOCS.md +++ b/DEV_DOCS.md @@ -66,7 +66,7 @@ Those include, but are not limited to the following: Ubuntu, Fedora, Debian, Arc #### What about NixOS? -If using NixOS, you need [Docker](https://wiki.nixos.org/wiki/Docker) to be installed and [Flakes](https://wiki.nixos.org/wiki/Flakes) to be enabled. +If using NixOS, you need [Docker](https://wiki.nixos.org/wiki/Docker) to be installed, `services.envfs.enabled = true;` and `programs.nix-ld.enabled = true;` to be set in your config and [Flakes](https://wiki.nixos.org/wiki/Flakes) to be enabled. If not using `direnv`, you can use `nix develop` or [Nix command](https://wiki.nixos.org/wiki/Nix_command). ### Windows diff --git a/README.md b/README.md index 70a65963ca..95fec6cedd 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Let's start by choosing an officially supported platform: > [!TIP] > - On macOS `aarch64` (`arm64`) systems, Rosetta 2 must be installed (install it with `softwareupdate --install-rosetta`) -> - [NixOS](https://nixos.org/) requires [`docker`](https://nixos.wiki/wiki/Docker) to be installed and [Flakes](https://nixos.wiki/wiki/Flakes) to be enabled (see the [development environment section of the dev docs](DEV_DOCS.md) for more information) +> - [NixOS](https://nixos.org/) requires [`docker`](https://nixos.wiki/wiki/Docker) to be installed, [Flakes](https://nixos.wiki/wiki/Flakes) to be enabled and `services.envfs.enabled = true;` and `programs.nix-ld.enabled = true;` to be set in your config (see the [development environment section of the dev docs](DEV_DOCS.md) for more information) > - Linux with MUSL instead of GNU (e.g. [Alpine Linux](https://www.alpinelinux.org/)) is untested > - [WSL2](https://learn.microsoft.com/en-us/windows/wsl/) on Windows should work, but you may need to enable `systemd` within your Linux distribution > - macOS `x86_64` (i.e. `amd64`, "Intel") has historically worked, but is currently untested diff --git a/prelude-si/toolchains/extraction.bzl b/prelude-si/toolchains/extraction.bzl index 6e39e2c1ec..700e786069 100644 --- a/prelude-si/toolchains/extraction.bzl +++ b/prelude-si/toolchains/extraction.bzl @@ -31,7 +31,7 @@ def _toolchain_extract_impl(ctx: AnalysisContext) -> list[Provider]: ctx.actions.write( extract_script, [ - "#!/bin/bash", + "#!/usr/bin/env bash", "set -e", "OUTPUT_DIR=\"$1\"", "ARCHIVE=\"$2\"", @@ -147,4 +147,4 @@ def download_and_extract_toolchain( os = os, arch = arch, visibility = visibility, - ) \ No newline at end of file + )