passthru.function is not existent, instead use overrideAttrs which has
almost the intended functionality. It triggers a rebuild, which
_should_ be fine for this package.
Fixes the following warning when setting
`systemd.enableStrictShellChecks = true`:
> In /nix/store/lbzbwz5w0r7rn1m2h3cwa57nfs0xy6dd-unit-script-tzupdate-start/bin/tzupdate-start line 6:
> timedatectl set-timezone $(/nix/store/q9bahab38yvn2lr3r3sdkvlnkg1rkzng-tzupdate-3.1.0/bin/tzupdate --print-only)
> ^-- SC2046 (warning): Quote this to prevent word splitting.
Fixes the following warning when setting
`systemd.enableStrictShellChecks = true`:
> In /nix/store/a3mk99mgl10a4k3maxx361hdli5p2rip-unit-script-ensure-printers-start/bin/ensure-printers-start line 6:
> /nix/store/26fb46gwc5sbd045nj3dxw4zqpml359i-cups-2.4.11/bin/lpadmin -D 'virtual printer for cups-pdf instance pdf' -L '/var/spool/cups-pdf-pdf/users/${USER}' -m CUPS-PDF_opt.ppd -p pdf -v cups-pdf:/pdf -E
> ^-- SC2016 (info): Expressions don't expand in single quotes, use double quotes for that.
Fixes the following warning when setting
`systemd.enableStrictShellChecks = true`:
> SC2174 (warning): When used with -p, -m only applies to the deepest
> directory.
Since it could conceivably be possible for `/var` to not exist when
running this script, the fix also explicitly tries to create /var with
the normal 0755 permissions.
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.