Skip to content

Commit

Permalink
pcmciaUtils: Fix udev rule path
Browse files Browse the repository at this point in the history
The pcmciaUtils udev rules failed to apply, as some paths were not
replaced correctly. For example, the following udev line is in the
source package:

SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
		RUN+="__UDEVHELPERDIR__/pcmcia-check-broken-cis"

The Makefile by default replaces the `__UDEVHELPERDIR__` with
`${prefix}/lib/udev`, which is the wrong place on NixOS. To quickly set
the correct path, just replace this placeholder string directly. With
this patch, the udev rules can be applied, as it is done with
`hardware.pcmcia.enable`. The files are referenced correctly and pcmcia
works fine on real hardware.
  • Loading branch information
Mynacol committed Jan 4, 2025
1 parent a1945f7 commit 39e440a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/by-name/pc/pcmciaUtils/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ stdenv.mkDerivation rec {
sed -i "
s,/sbin/modprobe,${kmod}&,;
s,/lib/udev/,$out/sbin/,;
s,__UDEVHELPERDIR__/,$out/lib/udev/,;
" udev/* # fix-color */
sed -i "
s,/lib/firmware,$out&,;
Expand Down

0 comments on commit 39e440a

Please sign in to comment.