forked from windmill-labs/windmill
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nix: nit fixes + bench script (windmill-labs#4703)
- Loading branch information
1 parent
2d57269
commit 9163060
Showing
5 changed files
with
58 additions
and
105 deletions.
There are no files selected for viewing
83 changes: 0 additions & 83 deletions
83
backend/.sqlx/query-0a686ca61444d7ad7484071727aa039a6ea6697e5a49a633b767c052aa3e0a18.json
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
backend/.sqlx/query-31dd23f6768052e486668172e15eba1a3f9b6a8e5678a7ee8e5456ff4405d6f9.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
backend/.sqlx/query-33cfb00f61dbae09467bd3732ce8e83c9835ccd30c90cb24788cdb54d1ceb575.json
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
backend/.sqlx/query-aa6907b7266ee437dfbd77a9bf6c047fda88f3e72a0d10323a5e4020cf857c42.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -26,7 +26,10 @@ | |
]); | ||
in { | ||
devShell = pkgs.mkShell { | ||
buildInputs = buildInputs ++ (with pkgs; [ git go xcaddy sqlx-cli ]); | ||
buildInputs = buildInputs ++ (with pkgs; [ | ||
git xcaddy sqlx-cli flock rust-analyzer | ||
deno python3 python3Packages.pip go bun uv | ||
]); | ||
packages = [ | ||
(pkgs.writeScriptBin "wm-caddy" '' | ||
cd ./frontend | ||
|
@@ -56,6 +59,9 @@ | |
sqlx database create | ||
wm-migrate | ||
'') | ||
(pkgs.writeScriptBin "wm-bench" '' | ||
deno run -A benchmarks/main.ts -e [email protected] -p changeme $* | ||
'') | ||
(pkgs.writeScriptBin "wm" '' | ||
cd ./frontend | ||
npm run dev $* | ||
|
@@ -68,6 +74,12 @@ | |
DATABASE_URL = "postgres://postgres:[email protected]:5432/"; | ||
REMOTE = "http://127.0.0.1:8000"; | ||
REMOTE_LSP = "http://127.0.0.1:3001"; | ||
DENO_PATH = "${pkgs.deno}/bin/deno"; | ||
PYTHON_PATH = "${pkgs.python3}/bin/python3"; | ||
GO_PATH = "${pkgs.go}/bin/go"; | ||
BUN_PATH = "${pkgs.bun}/bin/bun"; | ||
UV_PATH = "${pkgs.uv}/bin/uv"; | ||
FLOCK_PATH = "${pkgs.flock}/bin/flock"; | ||
}; | ||
packages.default = self.packages.${system}.windmill; | ||
packages.windmill-client = pkgs.stdenv.mkDerivation { | ||
|
@@ -82,7 +94,7 @@ | |
npm config set strict-ssl false | ||
cd frontend | ||
npm install --verbose | ||
npm run generate-backend-client-mac | ||
npm run ${if pkgs.stdenv.isDarwin then "generate-backend-client-mac" else "generate-backend-client"} | ||
NODE_OPTIONS="--max-old-space-size=8192" npm run build | ||
''; | ||
|
||
|