Skip to content
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

A flake example of picking nightly components would be great #43

Closed
gilescope opened this issue Jul 25, 2021 · 1 comment
Closed

A flake example of picking nightly components would be great #43

gilescope opened this issue Jul 25, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@gilescope
Copy link

(Sorry nixos noob here) The selectLatestNightlyWith seems excellent, but I'm not quite sure how to call it. I tried this:

        buildInputs = [
            pkgs.openssl
            pkgs.pkgconfig
            pkgs.exa
            pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {
              extensions = [ "llvm-tools-preview" ];
            })
          ];

but it's saying function can't be string (I did say I was a noob!). It would be great to have an example usage as there's not currently one on the internet yet and it feel to me that this would be the best default nightly flake template for people to use.

@oxalica
Copy link
Owner

oxalica commented Jul 26, 2021

The usage should be correct. You just need parenthesis inside the list of buildInputs.

buildInputs = [
    pkgs.openssl
    pkgs.openssl
    pkgs.pkgconfig
    pkgs.exa
    # This is a function call, not two elements of `buildInputs`.
    (pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {
        extensions = [ "llvm-tools-preview" ];
    }))
];

@oxalica oxalica added the documentation Improvements or additions to documentation label Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants