1 { runCommand, gawk, extensions, makeWrapper }:
3 runCommand "gawk-with-extensions" {
4 nativeBuildInputs = [ makeWrapper ];
5 buildInputs = [ gawk ] ++ extensions;
8 for i in ${gawk}/bin/*; do
9 name="$(basename "$i")"
10 makeWrapper $i $out/bin/$name \
11 --prefix AWKLIBPATH : "${gawk}/lib/gawk:''${AWKLIBPATH:-}"