about summary refs log blame commit diff
path: root/users/wpcarro/utils/builder.nix
blob: 2bc061d3661b181c21455b6a53412482f85644bb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12



                                     

  





                                                                               
{ 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} "$@"
  '';
}