udev-rules.drv failing for alsa-utils while trying to update (nixos unstable)
My config:
services.udev = {
packages = [ alsa-utils android-udev-rules platformio-core.udev openocd ];
};
The errors:
/nix/store/72y7j9z2vp8ffmvhfsiicb96kr1gywda-udev-rules/77-mm-huawei-net-port-types.rules:25 style: whitespace after comma is expected.
/nix/store/72y7j9z2vp8ffmvhfsiicb96kr1gywda-udev-rules/77-mm-huawei-net-port-types.rules:26 style: whitespace after comma is expected.
/nix/store/72y7j9z2vp8ffmvhfsiicb96kr1gywda-udev-rules/90-alsa-restore.rules:16 GOTO="alsa_restore_std" has no matching label, ignoring.
/nix/store/72y7j9z2vp8ffmvhfsiicb96kr1gywda-udev-rules/90-alsa-restore.rules:16 The line has no effect any more, dropping.
/nix/store/72y7j9z2vp8ffmvhfsiicb96kr1gywda-udev-rules/90-alsa-restore.rules:20 GOTO="alsa_restore_std" has no matching label, ignoring.
/nix/store/72y7j9z2vp8ffmvhfsiicb96kr1gywda-udev-rules/90-alsa-restore.rules:20 The line has no effect any more, dropping.
/nix/store/72y7j9z2vp8ffmvhfsiicb96kr1gywda-udev-rules/90-alsa-restore.rules: udev rules check failed.
53 udev rules files have been checked.
Success: 52
Fail: 1
Contents of /nix/store/72y7j9z2vp8ffmvhfsiicb96kr1gywda-udev-rules/90-alsa-restore.rules
for reference:
# do not edit this file, it will be overwritten on update
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", TEST=="/nix/store/xwwigrmbdipf38j6b9d4wjvrg5n42iq0-alsa-utils-1.2.13/sbin", TEST=="/nix/store/xwwigrmbdipf38j6b9d4wjvrg5n42iq0-alsa-utils-1.2.13/share/alsa", GOTO="alsa_restore_go"
GOTO="alsa_restore_end"
ENV{ALSA_CARD_NUMBER}="$attr{device/number}"
# mark HDA analog card; HDMI/DP card does not have capture devices
DRIVERS=="snd_hda_intel", TEST=="device/pcmC$env{ALSA_CARD_NUMBER}D0p", RUN+="/bin/sh -c 'echo ALSA_CARD_HDA_ANALOG=$env{ALSA_CARD_NUMBER} >> /run/udev/alsa-hda-analog-card'"
# check for ACP hardware
TEST=="device/device/acp3x-dmic-capture", GOTO="alsa_hda_analog"
TEST=="device/device/acp6x-dmic-capture", GOTO="alsa_hda_analog"
TEST=="device/device/acp63-dmic-capture", GOTO="alsa_hda_analog"
TEST=="device/device/acp-pdm-dmic", GOTO="alsa_hda_analog"
GOTO="alsa_restore_std"
LABEL="alsa_hda_analog"
# restore configuration for profile with combined cards (HDA + digital mic)
TEST!="/run/udev/alsa-hda-analog-card", GOTO="alsa_restore_std"
IMPORT{program}="/nix/store/87fck6hm17chxjq7badb11mq036zbyv9-coreutils-9.7/bin/cat /run/udev/alsa-hda-analog-card"
ENV{ALSA_CARD_HDA_ANALOG}!="", ENV{ALSA_CARD_NUMBER}="$env{ALSA_CARD_HDA_ANALOG}"
LABEL="alsa_restore_go"
TEST!="/etc/alsa/state-daemon.conf", RUN+="/nix/store/xwwigrmbdipf38j6b9d4wjvrg5n42iq0-alsa-utils-1.2.13/sbin/alsactl restore $env{ALSA_CARD_NUMBER}"
TEST=="/etc/alsa/state-daemon.conf", RUN+="/nix/store/xwwigrmbdipf38j6b9d4wjvrg5n42iq0-alsa-utils-1.2.13/sbin/alsactl nrestore $env{ALSA_CARD_NUMBER}"
LABEL="alsa_restore_end"