https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
9 lines
238 B
Nix
9 lines
238 B
Nix
{ pkgs, configTxt, firmware ? pkgs.raspberrypifw }:
|
|
|
|
pkgs.substituteAll {
|
|
src = ./raspberrypi-builder.sh;
|
|
isExecutable = true;
|
|
inherit (pkgs) bash;
|
|
path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
|
|
inherit firmware configTxt;
|
|
}
|