Skip to content

Commit 7992bea

Browse files
CodeChenLRadxaYuntian
authored andcommitted
fix: devcontainer: useAttributePath for nix features
To fix build devcontainer error: 243.7 ---- Reminders ----------------------------------------------------------------- 243.7 [ 1 ] 243.7 Nix won't work in active shell sessions until you restart them. 243.7 243.7 [ 2 ] 243.7 I don't support your init system yet; you may want to add nix-daemon manually. 243.7 243.7 (*) Setting up entrypoint... 243.7 (*) Executing post-installation steps... 243.7 Installing packages "direnv devenv" in profile... 249.7 trace: evaluation warning: darwin.iproute2mac has been renamed to iproute2mac 257.9 error: 257.9 … while evaluating a branch condition 257.9 at /nix/store/sqfzxq0p44g9g3bdfx83z691pfvcgkq0-nixpkgs/nixpkgs/pkgs/development/node-packages/aliases.nix:21:29: 257.9 20| # sets from building on Hydra. 257.9 21| removeDistribute = alias: if lib.isDerivation alias then lib.dontDistribute alias else alias; 257.9 | ^ 257.9 22| 257.9 257.9 … while evaluating a branch condition 257.9 at /nix/store/sqfzxq0p44g9g3bdfx83z691pfvcgkq0-nixpkgs/nixpkgs/pkgs/development/node-packages/aliases.nix:14:5: 257.9 13| alias: 257.9 14| if alias.recurseForDerivations or false then 257.9 | ^ 257.9 15| lib.removeAttrs alias [ "recurseForDerivations" ] 257.9 257.9 error: attribute 'antennas' missing 257.9 at /nix/store/sqfzxq0p44g9g3bdfx83z691pfvcgkq0-nixpkgs/nixpkgs/pkgs/development/node-packages/aliases.nix:56:14: 257.9 55| "@zwave-js/server" = pkgs.zwave-js-server; # Added 2023-09-09 257.9 56| antennas = pkgs.antennas; # added 2023-07-30 257.9 | ^ 257.9 57| inherit (pkgs) autoprefixer; # added 2024-06-25 258.1 ERROR: Feature "Nix Package Manager" (ghcr.io/devcontainers/features/nix) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/nix for help troubleshooting this error. ------ Signed-off-by: Jiali Chen <chenjiali@radxa.com>
1 parent c45b8ed commit 7992bea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"direnv",
2222
"devenv"
2323
],
24+
"useAttributePath": true,
2425
"extraNixConfig": [
2526
"experimental-features = nix-command flakes",
2627
// Uncomment below to speed up container building in China

src/share/rsdk/infra-package/.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"ghcr.io/devcontainers/features/nix:1": {
2020
"version": "latest",
2121
"packages": "cachix,direnv,devenv",
22+
"useAttributePath": true,
2223
"extraNixConfig": [
2324
"experimental-features = nix-command flakes",
2425
// Uncomment below to speed up container building in China

0 commit comments

Comments
 (0)