diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2021-10-12 12:48:27 -0700 |
---|---|---|
committer | Bernardo Meurer <bernardo@meurer.org> | 2021-11-08 09:33:33 -0800 |
commit | 0e4f04b74c3ec5948e2d860540409cf02306cb33 (patch) | |
tree | c26cbc70a57cb395c47e840db8ebb8d1ca7fd4f8 /pkgs/build-support/trivial-builders.nix | |
parent | 89979c9c5bef4cfc89e66662b1238a0bf7617702 (diff) |
writeShellApplication: buildInputs -> runtimeInputs
Diffstat (limited to 'pkgs/build-support/trivial-builders.nix')
-rw-r--r-- | pkgs/build-support/trivial-builders.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix index 506f843101605..e0571632e7600 100644 --- a/pkgs/build-support/trivial-builders.nix +++ b/pkgs/build-support/trivial-builders.nix @@ -260,7 +260,7 @@ rec { * # Writes my-file to /nix/store/<store path>/bin/my-file and makes executable. * writeShellApplication { * name = "my-file"; - * buildInputs = [ curl w3m ]; + * runtimeInputs = [ curl w3m ]; * text = '' * curl -s 'https://nixos.org' | w3m -dump -T text/html * ''; @@ -269,7 +269,7 @@ rec { writeShellApplication = { name , text - , buildInputs ? [ ] + , runtimeInputs ? [ ] , checkPhase ? null }: writeTextFile { @@ -282,7 +282,7 @@ rec { set -o nounset set- o pipefail - export PATH="${makeBinPath buildInputs}:$PATH" + export PATH="${makeBinPath runtimeInputs}:$PATH" ${text} ''; |