`devbox shell` command fails on x86_64-darwin: "nixpkgs 26.11 has dropped support for x86_64-darwin"
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- shell
- Lĩnh vực
- build-system, tooling
Hướng nghiên cứu
Start by tracing how Devbox selects the nixpkgs revision used to generate .devbox/gen/flake/flake.nix for the x86_64-darwin system; the issue provides that generated file and a working nixpkgs-26.05-darwin commit as references. Check the relevant tests for platform-specific revision selection, then verify that devbox shell succeeds on Intel macOS without a manual nixpkgs.commit pin.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
On x86_64-darwin, devbox shell fails in both existing projects and newly initialized ones. It fails even when packages is empty, so Devbox is currently unusable on this platform.
devbox shell
Info: Ensuring packages are installed.
✓ Computed the Devbox environment.
Error: nix: command error: nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' print-dev-env --json path:~/ws/nix-fix-x86darwin/.devbox/gen/flake: Nixpkgs 26.11 has dropped support for x86_64-darwin.: exit code 1
The generated .devbox/gen/flake/flake.nix pins a nixpkgs revision from the
26.11 line, which no longer supports this platform:
{
description = "A devbox shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/38a4887411571457d700c51c64a6e49ead2ed5ab?narHash=sha256-kh35kIx7el4Jk8Ki3BH9%2FPn1eZYSYLJ6LMALos0zOy0%3D";
};
outputs = {
self,
nixpkgs,
}:
let
pkgs = nixpkgs.legacyPackages.x86_64-darwin;
in
{
devShells.x86_64-darwin.default = pkgs.mkShell {
buildInputs = [
];
};
};
}
As a local workaround, adding "nixpkgs.commit": "329c3d2af6d1b618705150ea39f72c15eb4e613e" that indicates current nixpkgs-26.05-darwin branch to the devbox.json.
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.17.5/.schema/devbox.schema.json",
"packages": [],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
+ },
+ "nixpkgs": {
+ "commit": "329c3d2af6d1b618705150ea39f72c15eb4e613e"
}
}
.devbox/gen/flake/flake.nix generated from the devbox.json above
{
description = "A devbox shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/329c3d2af6d1b618705150ea39f72c15eb4e613e";
};
outputs = {
self,
nixpkgs,
}:
let
pkgs = nixpkgs.legacyPackages.x86_64-darwin;
in
{
devShells.x86_64-darwin.default = pkgs.mkShell {
buildInputs = [
];
};
};
}
Could Devbox select a nixpkgs-26.05-darwin revision for x86_64-darwin, so that existing projects keep working without each user pinning nixpkgs.commit by hand?
Nixpkgs 26.05 is supported until the end of 2026, so this would cover the remaining lifetime of the platform.
Steps to reproduce
devbox initonx86_64-darwinsystem.devbox shell
Command
shell
devbox.json
Devbox version
0.17.5
Nix version
No response
What system does this bug occur on?
macOS (Intel)
Debug logs
No response
- Ngôn ngữ chính
- Go
- Star
- 12.4k
- Fork
- 358
- Merge trung bình
- 17 giờ 12 phút
- Pull request đã merge (30 ngày)
- 31
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của jetify-com/devbox
-
feature triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
jetify-com/devbox#3038 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pulumi is outdatedĐang mởbug p4 package processed triage unrelated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
jetify-com/devbox#2898 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
p4 processed unrelated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
jetify-com/devbox#2750 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
StorydenĐang mởp4 package processed triage unrelated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
jetify-com/devbox#2685 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Plugin Request]: apacheKafkaĐang mởlooks easy p4 package processed triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
jetify-com/devbox#2656 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của jetify-com/devbox
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
blocked-needs-validation bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
projectcapsule/capsule#2280 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
kerti/balances-v2#801 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] AdvancedCronJob validating webhook reports incorrect field paths for concurrencyPolicy and pod templatesCó thể đã có người làm @bhuvan-somisetty đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openkruise/kruise#2650 ·
Maintainer thường phản hồi trong vòng 1 ngày