-
Notifications
You must be signed in to change notification settings - Fork 0
fix: guard worktrunk init and globals #758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,8 +15,10 @@ in | |
| { | ||
| # Install cargo global packages from Cargo.toml using home-manager activation | ||
| home.activation.installCargoGlobals = config.lib.dag.entryAfter [ "writeBoundary" ] '' | ||
| export PATH=${pkgs.rustup}/bin:${pkgs.cargo}/bin:${pkgs.dasel}/bin:${pkgs.jq}/bin:${pkgs.gcc}/bin:${pkgs.pkg-config}/bin:$PATH | ||
| export PATH=${pkgs.rustup}/bin:${pkgs.cargo}/bin:${pkgs.rustc}/bin:${pkgs.dasel}/bin:${pkgs.jq}/bin:${pkgs.gcc}/bin:${pkgs.pkg-config}/bin:$PATH | ||
| export CARGO_HOME="$HOME/.cargo" | ||
| $DRY_RUN_CMD ${pkgs.rustup}/bin/rustup toolchain install stable | ||
| $DRY_RUN_CMD ${pkgs.rustup}/bin/rustup default stable | ||
| export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig${libiconvPkgConfigPath}''${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" | ||
|
Comment on lines
+18
to
22
|
||
| export OPENSSL_DIR="${pkgs.openssl.dev}" | ||
| export OPENSSL_LIB_DIR="${pkgs.openssl.out}/lib" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're using
rustupto manage toolchains, it's better to rely on it to provide the correctcargoandrustcbinaries via its shims in$CARGO_HOME/bin. Explicitly adding${pkgs.cargo}/binand${pkgs.rustc}/binto thePATHcan lead to conflicts between the nix-provided packages and therustup-managed toolchain.I suggest defining
CARGO_HOMEfirst and then adding itsbindirectory to thePATH, removing the direct dependencies onpkgs.cargoandpkgs.rustcfrom thePATHfor this activation script.