diff options
author | lassulus <lassulus@lassul.us> | 2022-11-21 15:07:31 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-11-21 15:09:42 +0100 |
commit | b2f8ffb920466663f6b48b1cefcbf336b700bff4 (patch) | |
tree | 008253420e3050a57416be24948a86e0a2b0d7c6 /krebs/5pkgs/simple | |
parent | ad40a2e283f35a80b958bf33ce1635a1b5e4874d (diff) |
stable-generate: set PATH
Diffstat (limited to 'krebs/5pkgs/simple')
-rw-r--r-- | krebs/5pkgs/simple/stable-generate/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/krebs/5pkgs/simple/stable-generate/default.nix b/krebs/5pkgs/simple/stable-generate/default.nix index 495007397..23e4cfc8e 100644 --- a/krebs/5pkgs/simple/stable-generate/default.nix +++ b/krebs/5pkgs/simple/stable-generate/default.nix @@ -1,8 +1,13 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: pkgs.writers.writeDashBin "stable-generate" '' set -efu + export PATH=${lib.makeBinPath [ + pkgs.curl + pkgs.jq + ]} + STABLE_URL=''${STABLE_URL:-http://stable-confusion.r} PAYLOAD=$(jq -cn --arg query "$*" '{fn_index: 51, data: [$query,"","None","None",20,"Euler a",false,false,1,1,7,-1,-1,0,0,0,false,512,512,false,0.7,0,0,"None","",false,false,false,"","Seed","","Nothing","",true,false,false,null,"",""], session_hash: "hello_this_is_dog"}') |