mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 09:53:17 +00:00
774ad67ce0
Co-Authored-By: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
13 lines
329 B
Nix
13 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
|
|
''
|