2020-09-01 13:16:34 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pkgs) writeShellScriptBin;
|
2022-01-30 17:06:58 +01:00
|
|
|
in
|
|
|
|
{
|
2020-09-01 13:16:34 +02:00
|
|
|
# Create a derivation that creates an executable shell script named `as` that
|
|
|
|
# calls the program located at `path`, forwarding all of the arguments.
|
|
|
|
wrapNonNixProgram = { path, as }: writeShellScriptBin as ''
|
|
|
|
exec ${path} "$@"
|
|
|
|
'';
|
|
|
|
}
|