run nixpkgs-fmt

This commit is contained in:
Travis Staton 2024-06-24 09:11:22 -04:00
parent b027897628
commit 9113306d60

View file

@ -35,10 +35,12 @@ let
boards = [ "bcmrpi" "bcm2709" "bcmrpi3" "bcm2711" "bcm2712" ];
# Helpers for building the `pkgs.rpi-kernels' map.
rpi-kernel = { version, board }: let
kernel = versions[version];
rpi-kernel = { version, board }:
let
kernel = versions [ version ];
version-slug = builtins.replaceStrings [ "v" "_" ] [ "" "." ] version;
in {
in
{
"${version}"."${board}" = prev.lib.overrideDerivation (prev.buildLinux {
modDirVersion = version-slug;
version = version-slug;
@ -76,7 +78,7 @@ let
sed -i $buildRoot/include/config/auto.conf -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/'
'';
postFixup = "";
kernelPatches = if kernel.patches != null then kernel.patches else [];
kernelPatches = if kernel.patches != null then kernel.patches else [ ];
});
};
rpi-kernels = builtins.foldl' (b: a: b // rpi-kernel a) { };
@ -109,12 +111,14 @@ in
};
# default to latest firmware
raspberrypiWirelessFirmware = final.callPackage (
raspberrypiWirelessFirmware = final.callPackage
(
import ./raspberrypi-wireless-firmware.nix {
bluez-firmware = rpi-bluez-firmware-src;
firmware-nonfree = rpi-firmware-nonfree-src;
}
) { };
)
{ };
raspberrypifw = prev.raspberrypifw.overrideAttrs (oldfw: { src = rpi-firmware-src; });
} // {