tvl-depot/users/wpcarro/utils/builder.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
309 B
Nix
Raw Normal View History

{ pkgs, ... }:
let
inherit (pkgs) writeShellScriptBin;
in
{
# 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} "$@"
'';
}