Config fails to build on Macbook Pro 14" nixpkgs 23.11
vxld100 opened this issue · comments
Just today I updated my channels, with the only channel that was updated being the apple silicon support. However, my config failed to build during compilation. This is the error I get:
building '/nix/store/jbwjmibhwfd2gfs7bwfmy9g51yzlxyc5-unit-dbus.service.drv'...
Checking if "-mtls-dialect=gnu2" runs: DID NOT COMPILE
Dependency vdpau skipped: feature gallium-vdpau disabled
Program glslangValidator found: YES (/nix/store/s62rcmk7ia3zxi91ykrn792x8bc8h575-glslang-13.1.1/bin/glslangValidator)
Dependency libva skipped: feature gallium-va disabled
meson.build:831:4: ERROR: Problem encountered: rusticl requires meson 1.3.1 or newer
A full log can be found at /build/source/build/meson-logs/meson-log.txt
building '/nix/store/rb71w65my7ss6ql252z4q932mhr04y44-user-units.drv'...
error: builder for '/nix/store/j201ji7myl89p2shk06jmvakpajp2gh9-mesa-24.1.0.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/n9x135wcjq2jq4ww5arbalcsvfxsh1cw-opengl-drivers.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r1aaih6h67ikvzps08b6niqwkna7c4i1-nixos-tmpfiles.d.drv' failed to build
building '/nix/store/rsgfhf6laassdk5cxgn57mw3isp0h5bg-system-units.drv'...
error: 1 dependencies of derivation '/nix/store/yss7vl0abz2c4nz4jzqsbbclbh665aai-tmpfiles.d.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i5b2lyi15akfb32s86sqldlxisv204gn-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xlqk07p4cvk2nh1jglxi84vninh6y2kr-nixos-system-nixos-23.11.4976.79baff8812a0.drv' failed to build
error:
… while calling the 'head' builtin
at /nix/store/mj8r5bxgvxaqcn23rgfsmip8346ipnm5-nixos-23.11/nixos/lib/attrsets.nix:922:11:
921| || pred here (elemAt values 1) (head values) then
922| head values
| ^
923| else
… while evaluating the attribute 'value'
at /nix/store/mj8r5bxgvxaqcn23rgfsmip8346ipnm5-nixos-23.11/nixos/lib/modules.nix:807:9:
806| in warnDeprecation opt //
807| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
808| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: 1 dependencies of derivation '/nix/store/7qhi036h6zqpq6l589fmqxdjqxwrsddg-references.nix.drv' failed to build
Note that the apple silicon support was to only derivation that was rebuilt when I updated my channels, so it must be the cause of this. I am on nixpkgs 23.11, which has worked before, and as per release notes seems to be supported.
This is the asahi-linux relevant config. Please tell me if I'm missing anything. Am I forced to use nixpkgs unstable now?
{ config, lib, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
<apple-silicon-support/apple-silicon-support>
];
nixpkgs.config.allowUnfree = true;
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
gc = {
automatic = true;
options = "--delete-older-than 10d";
};
};
# Specify path to peripheral firmware files.
hardware.asahi = {
withRust = true;
useExperimentalGPUDriver = true;
experimentalGPUInstallMode = "replace";
peripheralFirmwareDirectory = ./firmware;
};
This was an issue with NixOS 23.11 not being supported. Turns out it was easier to correct than expected, so this is fixed in the latest release.