2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
runCommand,
|
|
|
|
gawk,
|
|
|
|
extensions,
|
|
|
|
makeWrapper,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
runCommand "gawk-with-extensions"
|
|
|
|
{
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ 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
|
|
|
|
''
|