fix: use libraspberrypi instead of raspberrypi-tools for pinctrl
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user