Fix typo in API guide

This commit is contained in:
Archit Gupta 2023-09-20 20:52:43 -07:00
parent 592cb247bf
commit b0fd6a391c

View File

@ -527,7 +527,7 @@ For example:
outputs = { flakelight, ... }: outputs = { flakelight, ... }:
flakelight ./. { flakelight ./. {
apps = { apps = {
shell = "/bin/sh" shell = "/bin/sh";
emacs = pkgs: "${pkgs.emacs}/bin/emacs"; emacs = pkgs: "${pkgs.emacs}/bin/emacs";
bash = pkgs: { type = "app"; program = "${pkgs.bash}/bin/bash"; }; bash = pkgs: { type = "app"; program = "${pkgs.bash}/bin/bash"; };
}; };
@ -543,7 +543,7 @@ Alternatively, the above can be written as:
outputs = { flakelight, ... }: outputs = { flakelight, ... }:
flakelight ./. { flakelight ./. {
apps = { emacs, bash, ... }: { apps = { emacs, bash, ... }: {
shell = "/bin/sh" shell = "/bin/sh";
emacs = "${emacs}/bin/emacs"; emacs = "${emacs}/bin/emacs";
bash = { type = "app"; program = "${bash}/bin/bash"; }; bash = { type = "app"; program = "${bash}/bin/bash"; };
}; };