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>
8 lines
168 B
Nix
8 lines
168 B
Nix
{ pkgs }:
|
|
|
|
pkgs.substituteAll {
|
|
src = ./extlinux-conf-builder.sh;
|
|
isExecutable = true;
|
|
path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
|
|
inherit (pkgs) bash;
|
|
}
|