Psionic K

Results 227 comments of Psionic K

https://doc.rust-lang.org/cargo/reference/environment-variables.html mkCrate.nix really needs to stop generating a config if we can get away with environment variables, which are easier to write in nix expressions. Things that need to be...

In release-0.11.0 the regular Rustc output can be found with `nix log `. It looks just like running regular cargo builds. The path of `workspaceSrc` will be included up to...

Where is `/build/cli/../../assets` located at in an normal cargo build? Which crate contains the path and how is it normally included as a dependency?

If deps are being amplified through multiple inclusion (DAG structure) and multiple levels, the right place to handle some of the problem is at each derivation when being created. I...

I've included a slightly more compact fix in #292 https://github.com/cargo2nix/cargo2nix/pull/292/commits/10f8429e455495970b8f94031e7a57e530bdfdf1 Closing in favor of #292 Will punch `unstable` with the results of that branch after I finish gathering up fixes...

Similar to reasoning about hooks, tests don't really make build outputs, so it's not something that needs dependency management or where the build output is a proper dependency of anything....

I believe this will happen in the shell first because all of the arguments wind up getting merged into one list and applied to the environment, likely without any de-duplication....

Does this still affect master? Be sure to check release notes and have a look at the new flake examples.

Still affects master. This is the `uniq` count for `propagatedBuildInputs` from nix show-derivation for the devShell ``` 2709 /nix/store/4i79qzjn3y3k1wmyigwcrpi83xhj3cxx-pkg-config-propagate-env 2709 /nix/store/561d5sd2r3ih63v7n38k2pgx4bhibl0m-pkg-config-wrapper-0.29.2 84 /nix/store/5wj9igmv1x7lsdzibcy6mpxm6p9r5p91-pango-1.48.10-dev 1414 /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev 3 /nix/store/dd2nqqzicf6ddmh9afs2laq8x2ci7msl-openssl-sys-propagate-env 1 /nix/store/f1pvni01z4h6qsykl4vgf6v7mknm73r6-dbus-1.12.20-dev 7...

Found the cause. The dev shell support in `workspaceShell ` is mostly pass-through to `mkShell` https://github.com/cargo2nix/cargo2nix/blob/master/overlay/workspace-shell.nix#L8-L16 In order to shove environment variables all the way through to the development shell,...