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

NixOS installation failed: Nightly 2021-12-19 is not available #173

Open
pca006132 opened this issue Mar 14, 2022 · 1 comment
Open

NixOS installation failed: Nightly 2021-12-19 is not available #173

pca006132 opened this issue Mar 14, 2022 · 1 comment

Comments

@pca006132
Copy link

pca006132 commented Mar 14, 2022

I tried to install the launcher using the command nix profile install github:veloren/Airshipper, but it failed with the message 'Nightly 2021-12-19 is not available'. Here is the trace:

error: Nightly 2021-12-19 is not available

       … while evaluating the attribute 'nightly."2021-12-19"'

       at /nix/store/knknkaha946ymfr4wmky7ic4ykwgrs0f-source/manifest.nix:111:7:

          110|       beta    = uncompressManifestSet "beta"    (import ./manifests/beta);
          111|       nightly = uncompressManifestSet "nightly" (import ./manifests/nightly);
             |       ^
          112|     };

       … while evaluating 'assertWith'

       at /nix/store/knknkaha946ymfr4wmky7ic4ykwgrs0f-source/rust-overlay.nix:14:29:

           13|
           14|     assertWith = cond: msg: body: if cond then body else throw msg;
             |                             ^
           15|

       … from call site

       at /nix/store/knknkaha946ymfr4wmky7ic4ykwgrs0f-source/rust-overlay.nix:43:7:

           42|     else if asNightlyDate != null then
           43|       assertWith (date == null) "Cannot specify date in both `channel` and `date`"
             |       ^
           44|         manifests.nightly.${asNightlyDate} or (throw "Nightly ${asNightlyDate} is not available")

       … while evaluating 'selectManifest'

       at /nix/store/knknkaha946ymfr4wmky7ic4ykwgrs0f-source/rust-overlay.nix:10:20:

            9|   # Manifest selector.
           10|   selectManifest = { channel, date ? null }: let
             |                    ^
           11|     inherit (self.rust-bin) manifests;

       … from call site

       at /nix/store/knknkaha946ymfr4wmky7ic4ykwgrs0f-source/rust-overlay.nix:56:44:

           55|       let
           56|         toolchain = toolchainFromManifest (selectManifest { inherit channel; });
             |                                            ^
           57|         profile' = if profile == null then "default" else profile;

       … while evaluating 'toolchainFromManifest'

       at /nix/store/knknkaha946ymfr4wmky7ic4ykwgrs0f-source/rust-overlay.nix:404:27:

          403|   #                       you will need to specify this extension in the extensions options or it will not be installed!
          404|   toolchainFromManifest = manifest: let
             |                           ^
          405|     inherit (builtins) elemAt;

       … from call site

       at /nix/store/knknkaha946ymfr4wmky7ic4ykwgrs0f-source/rust-overlay.nix:56:21:

           55|       let
           56|         toolchain = toolchainFromManifest (selectManifest { inherit channel; });
             |                     ^
           57|         profile' = if profile == null then "default" else profile;

       … while evaluating 'fromRustupToolchain'

       at /nix/store/knknkaha946ymfr4wmky7ic4ykwgrs0f-source/rust-overlay.nix:51:25:

           50|   # Or see source: https://github.com/rust-lang/rustup/blob/84974df1387812269c7b29fa5f3bb1c6480a6500/doc/src/overrides.md#the-toolchain-file
           51|   fromRustupToolchain = { path ? null, channel ? null, profile ? null, components ? [], targets ? [] }:
             |                         ^
           52|     if path != null then throw "`path` is not supported, please directly add it to your PATH instead"

       … from call site

       at /nix/store/knknkaha946ymfr4wmky7ic4ykwgrs0f-source/rust-overlay.nix:80:10:

           79|   in if legacy != null
           80|     then fromRustupToolchain { channel = head legacy; }
             |          ^
           81|     else fromRustupToolchain (fromTOML content).toolchain;

       … while evaluating 'fromRustupToolchainFile'

       at /nix/store/knknkaha946ymfr4wmky7ic4ykwgrs0f-source/rust-overlay.nix:75:29:

           74|   # Same as `fromRustupToolchain` but read from a `rust-toolchain` file (legacy one-line string or in TOML).
           75|   fromRustupToolchainFile = path: let
             |                             ^
           76|     inherit (builtins) readFile match fromTOML head;

       … from call site

       at /nix/store/kzgn1j3snzj7xra8x38481czxpf72y18-source/nixpkgs.nix:23:14:

           22|         if hasRustToolchainFile
           23|         then prev.rust-bin.fromRustupToolchainFile toolchainChannel
             |              ^
           24|         else prev.rust-bin.${toolchainChannel}.latest.default;

       … while evaluating the attribute 'RUSTC' of the derivation 'airshipper-0.7.0'

       at /nix/store/lf4nihr4qh32d3cqg75ivf818ji92q8k-source/pkgs/stdenv/generic/make-derivation.nix:203:11:

          202|         // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          203|           name =
             |           ^
          204|             let
@pyranota
Copy link

pyranota commented Nov 7, 2023

Have the same problem.
The same output produces this commands:

nix run github:veloren/veloren

nix run github:veloren/Airshipper

Setting up rustc Nightly as default does not solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants