-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
379332a
commit 4d227ef
Showing
10 changed files
with
122 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ pkgs, lib, config, inputs }: | ||
|
||
{ | ||
getInput = { name, url, attribute, follows ? [ ] }: | ||
let | ||
flags = lib.concatStringsSep " " (map (i: "--follows ${i}") follows); | ||
yaml_follows = lib.concatStringsSep "\n " (map (i: "${i}:\n follows: ${i}") follows); | ||
command = | ||
if lib.versionAtLeast config.devenv.cliVersion "1.0" | ||
then '' | ||
run the following command: | ||
$ devenv inputs add ${name} ${url} ${flags} | ||
'' | ||
else '' | ||
add the following to your devenv.yaml: | ||
✨ devenv 1.0 made this easier: https://devenv.sh/getting-started/#installation ✨ | ||
inputs: | ||
${name}: | ||
url: ${url} | ||
${if follows != [] then "inputs:\n ${yaml_follows}" else ""} | ||
''; | ||
in | ||
inputs.${name} or (throw "To use '${attribute}', ${command}\n\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.6.3 | ||
1.0 |