From 45683f63b42b6a1db131c2ac2eabe2e49916a4d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 1 Feb 2026 22:40:50 +0100 Subject: [PATCH] ccid: prepare udev rules for use in NixOS There is a RUN+="/usr/sbin/Kobil_mIDentity_switch" directive in the udev rules file, and since we don't have that program (we don't build ccid with "extras"), NixOS fails use it: Checking that all programs called by absolute paths in udev rules exist... FAIL /usr/sbin/Kobil_mIDentity_switch is called in udev rules but is not executable or does not exist Fix it by disabling that rule for now. --- pkgs/by-name/cc/ccid/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/cc/ccid/package.nix b/pkgs/by-name/cc/ccid/package.nix index c5bc1aa625d3..b1792ddd96be 100644 --- a/pkgs/by-name/cc/ccid/package.nix +++ b/pkgs/by-name/cc/ccid/package.nix @@ -61,6 +61,10 @@ stdenv.mkDerivation (finalAttrs: { install -Dm 0444 -t $out/lib/udev/rules.d ../src/92_pcscd_ccid.rules substituteInPlace $out/lib/udev/rules.d/92_pcscd_ccid.rules \ --replace-fail "/usr/sbin/pcscd" "${pcsclite}/bin/pcscd" + # Disable reference to binary that we don't build. + substituteInPlace $out/lib/udev/rules.d/92_pcscd_ccid.rules \ + --replace-fail 'ATTRS{idVendor}=="0d46", ATTRS{idProduct}=="4081", RUN+="/usr/sbin/Kobil_mIDentity_switch"' \ + '# disabled: ATTRS{idVendor}=="0d46", ATTRS{idProduct}=="4081", RUN+="/usr/sbin/Kobil_mIDentity_switch"' ''; # The resulting shared object ends up outside of the default paths which are