Describe the bug
When creating a devshell on aarch64-darwin with gcc (or clang) and binutils, I get an error even though I'm using lib.lowPrio
pkgs.buildEnv error: two given paths contain a conflicting subpath:
`/nix/store/bkx74rgg0bxrvbmdp1fzb0qw0qxqj18v-binutils-wrapper-2.46/bin/strings' and
`/nix/store/r2rxcj66b6jkyzn68pk42frmh8zybzkp-gcc-wrapper-15.3.0/bin/strings'
This occurs when using the ruby language extension,
To Reproduce
Steps to reproduce the behavior:
- Define a shell like:
test = pkgs.devshell.mkShell {
packages = [ pkgs.gcc (pkgs.lib.lowPrio pkgs.binutils) ];
};
- Try to load shell and see error
Expected behavior
The shell should be able to load on aarch64-darwin.
System information
OS: macOS 26.6.2
Nix version: nix (Nix) 2.34.8
Using devshell at the current last commit
Additional context
This issue does not occur when defines a simple shell.nix file like:
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
nativeBuildInputs = [
pkgs.gcc
(pkgs.lib.lowPrio pkgs.binutils)
];
}
Describe the bug
When creating a devshell on aarch64-darwin with gcc (or clang) and binutils, I get an error even though I'm using
lib.lowPrioThis occurs when using the ruby language extension,
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The shell should be able to load on aarch64-darwin.
System information
OS: macOS 26.6.2
Nix version: nix (Nix) 2.34.8
Using devshell at the current last commit
Additional context
This issue does not occur when defines a simple shell.nix file like: