internal: fix flake and cli dev usage (#6761)

* fix flake

* fix cli build

* fix deno_ffi
This commit is contained in:
centdix
2025-10-07 08:07:47 +00:00
committed by GitHub
parent 258b275f9b
commit 7b9e2c2d68
12 changed files with 24 additions and 28 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
# This script outputs all features except private. Usage :
# > cargo build --features $(./all_features_oss.sh)
#!/bin/bash
# Path to the Cargo.toml file
CARGO_TOML_PATH="./Cargo.toml"
@@ -877,9 +877,6 @@ pub async fn run_agent(
"inner_job_completed_tx should be set as agent jobs are not supported on agent workers",
);
#[cfg(feature = "benchmark")]
let mut bench = windmill_common::bench::BenchmarkIter::new();
// Spawn handle_queued_job on separate task to prevent tokio stack overflow
// Clone everything needed for the spawned task
let tool_job_spawn = tool_job.clone();
-3
View File
@@ -16,8 +16,5 @@ set -e
echo "Running dnt..."
deno run -A dnt.ts
# Remove .ts extensions after building to go back to the original state
./windmill-utils-internal/remove-ts-ext.sh
echo "Build complete!"
@@ -1 +1 @@
export * from "./config";
export * from "./config.ts";
+5 -5
View File
@@ -8,8 +8,8 @@
* - Cross-platform path constants
*/
export * from "./inline-scripts";
export * from "./path-utils";
export * from "./parse";
export * from "./config";
export { SEP, DELIMITER } from "./constants";
export * from "./inline-scripts.ts";
export * from "./path-utils.ts";
export * from "./parse.ts";
export * from "./config.ts";
export { SEP, DELIMITER } from "./constants.ts";
@@ -1,5 +1,5 @@
import { newPathAssigner, PathAssigner } from "../path-utils/path-assigner";
import { FlowModule } from "../gen/types.gen";
import { newPathAssigner, PathAssigner } from "../path-utils/path-assigner.ts";
import { FlowModule } from "../gen/types.gen.ts";
/**
* Represents an inline script extracted from a flow module
@@ -1,2 +1,2 @@
export * from "./replacer";
export * from "./extractor";
export * from "./replacer.ts";
export * from "./extractor.ts";
@@ -1,4 +1,4 @@
import { FlowModule } from "../gen/types.gen";
import { FlowModule } from "../gen/types.gen.ts";
/**
* Replaces inline script references with actual file content from the filesystem.
@@ -1 +1 @@
export * from "./parse-schema";
export * from "./parse-schema.ts";
@@ -1 +1 @@
export * from "./path-assigner";
export * from "./path-assigner.ts";
@@ -1,4 +1,4 @@
import { RawScript } from "../gen/types.gen";
import { RawScript } from "../gen/types.gen.ts";
const INLINE_SCRIPT_PREFIX = "inline_script";
+8 -6
View File
@@ -50,11 +50,11 @@
xmlsec.dev
libxslt.dev
libclang.dev
libffi # For deno_ffi
libtool
nodejs
postgresql
pkg-config
glibc.dev
clang
cmake
];
@@ -298,9 +298,10 @@
# included we need to look in a few places.
# See https://web.archive.org/web/20220523141208/https://hoverbear.org/blog/rust-bindgen-in-nix/
BINDGEN_EXTRA_CLANG_ARGS =
"${builtins.readFile "${stdenv.cc}/nix-support/libc-crt1-cflags"} ${
# Prevent clang from using system headers - only use Nix headers
"-nostdinc ${builtins.readFile "${stdenv.cc}/nix-support/libc-crt1-cflags"} ${
builtins.readFile "${stdenv.cc}/nix-support/libc-cflags"
}${builtins.readFile "${stdenv.cc}/nix-support/cc-cflags"}${
} ${builtins.readFile "${stdenv.cc}/nix-support/cc-cflags"} ${
builtins.readFile "${stdenv.cc}/nix-support/libcxx-cxxflags"
} -idirafter ${pkgs.libiconv}/include ${
lib.optionalString stdenv.cc.isClang
@@ -313,9 +314,10 @@
lib.getVersion stdenv.cc.cc
} -isystem ${stdenv.cc.cc}/include/c++/${
lib.getVersion stdenv.cc.cc
}/${stdenv.hostPlatform.config} -idirafter ${stdenv.cc.cc}/lib/gcc/${stdenv.hostPlatform.config}/14.2.1/include"
}"; # NOTE: It is hardcoded to 14.2.1 -------------------------------------------------------------^^^^^^
# Please update the version here as well if you want to update flake.
}/${stdenv.hostPlatform.config} -idirafter ${stdenv.cc.cc}/lib/gcc/${stdenv.hostPlatform.config}/${
lib.getVersion stdenv.cc.cc
}/include"
}";
};
packages.default = self.packages.${system}.windmill;
packages.windmill-client = pkgs.buildNpmPackage {