tvl-depot/utils/builder.nix
William Carroll a076027945 Define {builder,fs}.nix for utils.nix
Re-export everything from utils.nix.
2020-09-01 12:16:34 +01:00

11 lines
309 B
Nix

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