mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
14 lines
356 B
Nix
14 lines
356 B
Nix
{ runCommand, gawk, extensions, makeWrapper }:
|
|
|
|
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
|
|
''
|