8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
12 lines
329 B
Nix
12 lines
329 B
Nix
{ runCommand, gawk, extensions, makeWrapper }:
|
|
|
|
runCommand "gawk-with-extensions" {
|
|
buildInputs = [ makeWrapper gawk ] ++ extensions;
|
|
} ''
|
|
mkdir -p $out/bin
|
|
for i in ${gawk}/bin/*; do
|
|
name="$(basename "$i")"
|
|
makeWrapper $i $out/bin/$name \
|
|
--prefix AWKLIBPATH : "${gawk}/lib/gawk:''${AWKLIBPATH:-}"
|
|
done
|
|
''
|