Repository navigation
vite-plus: init at 1.1.0 - #533925
vite-plus: init at 1.1.0#533925fengmk2 wants to merge 3 commits into
Conversation
|
cc @qweered |
|
New packages couldn't be added without a maintainer, see pkgs/Readme.md |
This comment was marked as resolved.
This comment was marked as resolved.
eddde1e to
ad18d9a
Compare
|
any progress? i can handle it if you want |
- Track the official prebuilt vp-aarch64-apple-darwin.tar.gz release asset in nvfetcher.toml (the Nix equivalent of upstream's curl installer); install it via a thin pkgs/vite-plus.nix like ax/vize - Drop the vp-nix flake input; TODO recorded in pkgs/vite-plus.nix to switch to pkgs.vite-plus once NixOS/nixpkgs#533925 lands - Sync README and docs walkthrough Refs #346 Co-Authored-By: Claude Fable 5 <[email protected]>
|
oh yeah, coz i'm a maintainer, i can help it. ok let me check |
|
Hi! Just checking on the current status here. From what I can tell CI is green and the remaining discussion is around the packaging approach. Is there anything still blocking this, or anything I could help with? |
Assisted-by: Claude Code (Claude Opus 4.8)
Build the global CLI from source and provide its JavaScript toolchain from pinned npm dependencies, including upstream native bindings. Use stable Cargo with vendoring fixups and stubbed fspy artifacts. Default Node.js to system-first while preserving managed package-manager versions. Provide the completed-installation marker and the vpr and vpx aliases so first launch does not create another installation. Make copied project templates writable outside the Nix store. Assisted-by: Claude Code (Claude Opus 4.8) Assisted-by: Codex (GPT-6)
5a8e506 to
a24a564
Compare
|
Tried this out. Below is text written by Claude Opus 5.5...
|
Assisted-by: Codex (GPT-6)
|
@louwers Skipped the tests that depend on the network. I did not change the compilation parameters, because they affect the final runtime performance. If compilation still feels too slow later on, we can look into whether to adjust them. |
|
I got a source build from upstream pnpm lockfile. Not sure if this is the correct approach, it compiles too many things... |
Adds
vite-plus, the unified toolchain CLI (vp) for web development at1.1.0. It manages Node.js runtimes, package managers, and the frontend toolchain in one place.The package builds the
vpbinary from source. Its JavaScript subcommands (vp create,vp run, ...) resolve a toolchain at<prefix>/node_modules/vite-plus/dist, whichfetchNpmDepssupplies from a lockfile. Those dependencies include prebuilt native bindings (rolldown,oxc,oxlint, andoxfmt), hence thebinaryNativeCodeprovenance.Build workarounds
Comments in
package.nixexplain each workaround:packages/cli/bindingmember and therolldown/string_wizardpath dependencies. The source tarball excludes the externally synced Rolldown tree; no remainingvp_*crate depends on it.vite-taskGit dependency so stable Cargo can runcargo metadataduring vendoring without-Z bindeps.materialized_artifact_macros. Nix builds use immutable inputs and do not need incremental macro tracking.fspypreload library because its artifact dependencies require unstable Cargo features. Also skip thefspybuild-time download of macOS helper binaries.seccompilerdependency'srust-vmm-cisubmodule from the vendor directory. Its filenames differ only in case, so case-insensitive stores produce a differentcargoHash.system-firstwith a patch. Downloaded Node.js binaries cannot run on NixOS without a compatible loader, sovpuses the Nix-providednodeonPATH. Package managers retainmanagedmode to respect project version requirements;vp env onre-enables managed Node.js..vp-setup-completeto prevent automatic setup on first use, and include thevprandvpxaliases.Limitations
fspystub disables filesystem tracing (LD_PRELOADinterception) and macOS shell helpers. Stable Cargo does not support the required artifact dependencies. Tracked upstream in Nix / NixOS support voidzero-dev/vite-plus#1899.Things done
x86_64-linuxaarch64-linux(evaluated only)x86_64-darwin(unsupported by current Nixpkgs)aarch64-darwinvp --version,vp --help, andvp create) and native bindings onaarch64-darwinandx86_64-linux.versionCheckHookpass on both built platforms. Network/runtime and environment-sensitive tests remain filtered viacheckFlags.Assisted-by: Claude Code (Claude Opus 4.8), Codex (GPT-6)