@grhmc So, Rust based packages in nixos - if I want to replace the *source* to the rustup package (ie. have it built from a test branch of my own) how do I express that in nix without just copying the package into my config and hacking at it? (I am still very junior nix-wise)

Jun 6, 2022 ยท 10:07 AM UTC

2
2
I've done the "grab the whole package into my config" thing before for rust-analyzer, though obviously I'd prefer to not have to do that.
Replying to @dsilverstone @grhmc
I might need to know more about how exactly you are getting rustup, but here for example I can override the source of the rustup package from nixpkgs: rustup.overrideAttrs (old_attrs: { src = path/to/local/rustup/src; }) Or you can use `fetchGit` instead of a local path ๐Ÿ˜€
2
I would be fetching from a branch in a repo, so fetchGit for sure; isn't there a cargo sha thing too though? I'm not sure, I should probably seek out the computed derivation and look I guess; but I don't know how :D
1