You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nixpkgs has an independently maintained package that is being kept up to date and working by some volunteers
we'd like to collaborate with them so they don't have to bend over backwards to package zed
we have two main priorities for the in-tree flake
keep the devshell working as a developer environment for all platforms. try to make sure that users can build zed, remote servers, and the collab server, as well as having all tests pass with no system-level dependencies
working build to make a nightly version of zed easily available (nix run github:zed-industries/zed)
Known issues
cargo about doesn't work with crane's cargoVendorDeps (see this comment). Fix nix build #26270 adds a flag to prevent it from causing installPhase to fail, but we'd like to have a better solution eventually.
craneLib.buildDepsOnly isn't working. Fix nix build #26270 disables it, but fixing it would be nice for caching/build times.
use musl/pkgsStatic to build a static one for linux
upstream a knob to webrtc-sys to control static/dynamic linking OR write a static package for it
upstream our cargo bundle changes and stop building a custom version of it
add an optional FHSenv that supports the downloaded binaries of popular language servers
I'm on the fence about whether we want to provide this
another potential solution is improving the extension API to allow prevention of downloading binaries and making sure they pick up existing ones on your $PATH
some existing docs advise using nix-ld for this, I don't know whether that's a better or worse experience than an FHSenv (maybe depends on whether you end up needing to add additional packages to the FHSenv)
build collab server with nix (another separate output)
provide nixos module for running the collab server
add crane rustdoc output with private items and doctests if possible
Important
this issue only tracks issues with our in-tree flake and users' ability to build zed, for other issues with using the editor on nixos such as:
... you should check the nix label in our issues and file a new issue instead of bringing it up here
Progress
The following table tracks what functionality is known to be working on each platform. All listed commands are run inside the devshell.
cargo run
cargo nextest r --workspace
nix run github:zed-industries/zed
cargo r -p remote_server
cargo r -p collab
script/bundle-<linux/mac>
key:
Context
nix run github:zed-industries/zed
)Known issues
cargo about
doesn't work with crane'scargoVendorDeps
(see this comment). Fix nix build #26270 adds a flag to prevent it from causinginstallPhase
to fail, but we'd like to have a better solution eventually.craneLib.buildDepsOnly
isn't working. Fix nix build #26270 disables it, but fixing it would be nice for caching/build times.Roadmap
craneLib.buildDepsOnly
Footnotes
Should have been fixed in Fix nix build #26270, need someone on those platforms to verify ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15
The text was updated successfully, but these errors were encountered: