diff options
author | William Carroll <wpcarro@gmail.com> | 2020-09-01T11·16+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-09-01T11·16+0100 |
commit | a0760279452b128ef815b0492489b6d550156f0a (patch) | |
tree | 86e4aa8f0509975f5148f4c40d20172aa8a88cc0 /utils/builder.nix | |
parent | fb5ec068ddd50f6bce41c7a0bad45673db787940 (diff) |
Define {builder,fs}.nix for utils.nix
Re-export everything from utils.nix.
Diffstat (limited to 'utils/builder.nix')
-rw-r--r-- | utils/builder.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/builder.nix b/utils/builder.nix new file mode 100644 index 000000000000..45e783cf0ba8 --- /dev/null +++ b/utils/builder.nix @@ -0,0 +1,11 @@ +{ 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} "$@" + ''; +} |