Closed ryanpeach closed 4 years ago
I do not understand why you would not add the overlay to your NixOS configuration, and then just list latest.rustChannels.nightly.rust
in the list of programs to install.
nixpkgs.overlays = [
(import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz))
];
Im just not good at the nix language yet. Its pretty hard.
OK, does doing that resolve your use case/can we close this issue? I think that defining extras/rust.nix
and putting it in systemPackages
is equivalent to trying to define a package/derivation, which is why you're getting the error message you are about not having a $src
. I don't think this is the way you want to go for this kind of situation.
build error
/etc/nixos/common.nix
/etc/nixos/extras/rust.nix