fix: use libraspberrypi instead of raspberrypi-tools for pinctrl

This commit is contained in:
2026-06-16 19:07:34 -04:00
parent 1d50b6455d
commit b9e89ce537

View File

@@ -21,7 +21,7 @@ let
applyRailsScript = pkgs.writeShellScript "apply-aio-v2-rails" ( applyRailsScript = pkgs.writeShellScript "apply-aio-v2-rails" (
'' ''
set -e set -e
PINCTRL=${pkgs.raspberrypi-tools}/bin/pinctrl PINCTRL=${pkgs.libraspberrypi}/bin/pinctrl
'' ''
+ concatStringsSep "" (mapAttrsToList (name: pin: '' + concatStringsSep "" (mapAttrsToList (name: pin: ''
if [ "${if cfg.bootRails.${name} then "1" else "0"}" = "1" ]; then if [ "${if cfg.bootRails.${name} then "1" else "0"}" = "1" ]; then
@@ -123,7 +123,7 @@ in {
# Package the aiov2_ctl tool + pinctrl # Package the aiov2_ctl tool + pinctrl
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cfg.package cfg.package
raspberrypi-tools # provides pinctrl libraspberrypi # provides pinctrl
]; ];
# Boot rail systemd oneshot service # Boot rail systemd oneshot service