raspberrypi-builder: allow passing firmware package as argument

This commit is contained in:
Richard Marko 2020-09-26 14:24:40 +02:00
parent 740f01413b
commit 9b06e9856b

View File

@ -1,10 +1,9 @@
{ pkgs, configTxt }:
{ pkgs, configTxt, firmware ? pkgs.raspberrypifw }:
pkgs.substituteAll {
src = ./raspberrypi-builder.sh;
isExecutable = true;
inherit (pkgs) bash;
path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
firmware = pkgs.raspberrypifw;
inherit configTxt;
inherit firmware configTxt;
}