nixos/hardware.deviceTree: Move things around
In response to comments, create a sub-folder for deviceTree packages (starting with rpi), and a top-level package for helpers.
This commit is contained in:
committed by
Kai Wohlfahrt
parent
dd0a951279
commit
28cf80acf8
@@ -0,0 +1,14 @@
|
||||
{ stdenvNoCC, raspberrypifw }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
name = "raspberrypi-dtbs-${raspberrypifw.version}";
|
||||
nativeBuildInputs = [ raspberrypifw ];
|
||||
buildCommand = ''
|
||||
mkdir -p $out/broadcom/
|
||||
cp ${raspberrypifw}/share/raspberrypi/boot/bcm*.dtb $out/broadcom
|
||||
'';
|
||||
passthru = {
|
||||
# Compatible overlays that may be used
|
||||
overlays = "${raspberrypifw}/share/raspberrypi/boot/overlays";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user