Files
nix-config/packages/raspberrypi/raspberrypi-overlays/default.nix
2026-04-05 19:10:23 -05:00

42 lines
985 B
Nix

{
lib,
stdenvNoCC,
namespace,
pkgs,
}:
let
inherit (lib.trivial) importJSON;
inherit (lib.${namespace}) selectVariant mkAllSources;
versionSpec = importJSON ./version.json;
selected = selectVariant versionSpec null null;
vars = selected.variables or { };
sources = mkAllSources pkgs selected;
in
stdenvNoCC.mkDerivation {
# NOTE: this should be updated with linux_rpi
pname = "raspberrypi-dtoverlays";
inherit (vars) version;
src = sources.linux;
installPhase = ''
mkdir -p $out/dtbs/raspberrypi-overlays/
mv arch/arm/boot/dts/overlays/* "$out/dtbs/raspberrypi-overlays/"
'';
dontConfigure = true;
dontBuild = true;
dontFixup = true;
meta = {
description = "Overlays for the Raspberry Pi board";
homepage = "https://github.com/raspberrypi/linux";
maintainers = [ ];
# Hash mismatch on source, mystery.
# Maybe due to https://github.com/NixOS/nix/issues/847
broken = stdenvNoCC.hostPlatform.isDarwin;
};
}