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 { pkgs.substituteAll {
src = ./raspberrypi-builder.sh; src = ./raspberrypi-builder.sh;
isExecutable = true; isExecutable = true;
inherit (pkgs) bash; inherit (pkgs) bash;
path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep]; path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
firmware = pkgs.raspberrypifw; inherit firmware configTxt;
inherit configTxt;
} }