base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / text / gawk / gawk-with-extensions.nix
blob1b82d798d3309b7a073300a91e4e5569e24c31d8
1 { runCommand, gawk, extensions, makeWrapper }:
3 runCommand "gawk-with-extensions" {
4   nativeBuildInputs = [ makeWrapper ];
5   buildInputs = [ gawk ] ++ extensions;
6 } ''
7   mkdir -p $out/bin
8   for i in ${gawk}/bin/*; do
9     name="$(basename "$i")"
10     makeWrapper $i $out/bin/$name \
11       --prefix AWKLIBPATH : "${gawk}/lib/gawk:''${AWKLIBPATH:-}"
12   done