Created
July 8, 2025 23:40
-
-
Save noblepayne/1ff0c164cb6aac8108fbc7b00ef8f2e9 to your computer and use it in GitHub Desktop.
dotenvx + devenv tasks
This file contains hidden or 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
| { pkgs, lib, config, inputs, ... }: | |
| { | |
| tasks = { | |
| "myapp:task1" = { | |
| exec = ''echo "{\"output\": \"$IN_THE_ENV\"}" > $DEVENV_TASK_OUTPUT_FILE''; | |
| package = pkgs.writeShellApplication { | |
| name = "dotenvx-run"; | |
| text = '' | |
| exec ${pkgs.dotenvx}/bin/dotenvx run -o -- bash "$1" | |
| ''; | |
| }; | |
| }; | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment