Skip to content

Running "nix develop" leads to error #513

@dvdkroft

Description

@dvdkroft

Describe the bug
After pulling the github repo, I'm unable to run the project

To Reproduce
Steps to reproduce the behavior:

  1. gh repo clone input-output-hk/catalyst-core
  2. cd into directory
  3. run "direnv allow"
  4. run "nix develop"

Leads to the following error:
$ nix develop
error: Stable 1.71.0 is not available
(use '--show-trace' to show detailed location information)

Expected behavior
The project to run

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser N/A

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

nix develop --show-trace
error:
       … while evaluating the attribute 'args' of the derivation 'Catalyst-Core'

       at /nix/store/dsmb9p1w79jd86ahbjj9i45zvdmfb8q8-source/nix/mkNakedShell.nix:30:10:

           29| (derivation {
           30|   inherit name system;
             |          ^
           31|

       … while evaluating the attribute 'passAsFile' of the derivation 'devshell-dir'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/pkgs/stdenv/generic/make-derivation.nix:270:7:

          269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          270|       name =
             |       ^
          271|         let

       … while evaluating the attribute 'passAsFile'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/pkgs/build-support/buildenv/default.nix:77:5:

           76|     # XXX: The size is somewhat arbitrary
           77|     passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
             |     ^
           78|   }

       … while evaluating call site

       at «none»:0: (source not available)

       … while calling 'g'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/attrsets.nix:530:19:

          529|           g =
          530|             name: value:
             |                   ^
          531|             if isAttrs value && cond value

       … while evaluating call site

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/attrsets.nix:533:20:

          532|               then recurse (path ++ [name]) value
          533|               else f (path ++ [name]) value;
             |                    ^
          534|         in mapAttrs g;

       … while calling anonymous lambda

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:265:72:

          264|           # For definitions that have an associated option
          265|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          266|

       … while evaluating the attribute 'value'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:723:9:

          722|     in warnDeprecation opt //
          723|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          724|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `devshell.packages':

       … while evaluating the attribute 'mergedValue'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:758:5:

          757|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          758|     mergedValue =
             |     ^
          759|       if isDefined then

       … while evaluating the attribute 'values'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:752:9:

          751|       in {
          752|         values = defs''';
             |         ^
          753|         inherit (defs'') highestPrio;

       … while evaluating the attribute 'values'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:851:7:

          850|     in {
          851|       values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
             |       ^
          852|       inherit highestPrio;

       … while evaluating call site

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:738:17:

          737|         # Process mkMerge and mkIf properties.
          738|         defs' = concatMap (m:
             |                 ^
          739|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while calling anonymous lambda

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:738:28:

          737|         # Process mkMerge and mkIf properties.
          738|         defs' = concatMap (m:
             |                            ^
          739|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `/nix/store/dsmb9p1w79jd86ahbjj9i45zvdmfb8q8-source/modules/back-compat.nix':

       … while evaluating call site

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:739:137:

          738|         defs' = concatMap (m:
          739|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                         ^
          740|         ) defs;

       … while calling 'dischargeProperties'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:810:25:

          809|   */
          810|   dischargeProperties = def:
             |                         ^
          811|     if def._type or "" == "merge" then

       … while evaluating the attribute 'value'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:563:44:

          562|       defnsByName' = byName "config" (module: value:
          563|           [{ inherit (module) file; inherit value; }]
             |                                            ^
          564|         ) configs;

       … while evaluating call site

       at «none»:0: (source not available)

       … while calling 'g'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/attrsets.nix:530:19:

          529|           g =
          530|             name: value:
             |                   ^
          531|             if isAttrs value && cond value

       … while evaluating call site

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/attrsets.nix:533:20:

          532|               then recurse (path ++ [name]) value
          533|               else f (path ++ [name]) value;
             |                    ^
          534|         in mapAttrs g;

       … while calling anonymous lambda

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:265:72:

          264|           # For definitions that have an associated option
          265|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          266|

       … while evaluating the attribute 'value'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:723:9:

          722|     in warnDeprecation opt //
          723|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          724|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `packages':

       … while evaluating the attribute 'mergedValue'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:758:5:

          757|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          758|     mergedValue =
             |     ^
          759|       if isDefined then

       … while evaluating call site

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:760:59:

          759|       if isDefined then
          760|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
             |                                                           ^
          761|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;

       … while calling 'merge'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/types.nix:491:20:

          490|       check = isList;
          491|       merge = loc: defs:
             |                    ^
          492|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:

       … while evaluating call site

       at «none»:0: (source not available)

       … while calling anonymous lambda

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/types.nix:492:35:

          491|       merge = loc: defs:
          492|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
             |                                   ^
          493|           imap1 (m: def':

       … while evaluating call site

       at «none»:0: (source not available)

       … while calling anonymous lambda

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/lists.nix:117:29:

          116|   */
          117|   imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
             |                             ^
          118|

       … while evaluating call site

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/lists.nix:117:32:

          116|   */
          117|   imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
             |                                ^
          118|

       … while calling anonymous lambda

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/types.nix:493:21:

          492|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
          493|           imap1 (m: def':
             |                     ^
          494|             (mergeDefinitions

       … while evaluating the attribute 'optionalValue'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:770:5:

          769|
          770|     optionalValue =
             |     ^
          771|       if isDefined then { value = mergedValue; }

       … while evaluating the attribute 'values'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:752:9:

          751|       in {
          752|         values = defs''';
             |         ^
          753|         inherit (defs'') highestPrio;

       … while evaluating the attribute 'values'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:851:7:

          850|     in {
          851|       values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
             |       ^
          852|       inherit highestPrio;

       … while evaluating call site

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:738:17:

          737|         # Process mkMerge and mkIf properties.
          738|         defs' = concatMap (m:
             |                 ^
          739|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while calling anonymous lambda

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:738:28:

          737|         # Process mkMerge and mkIf properties.
          738|         defs' = concatMap (m:
             |                            ^
          739|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `<unknown-file>':

       … while evaluating call site

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:739:137:

          738|         defs' = concatMap (m:
          739|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                         ^
          740|         ) defs;

       … while calling 'dischargeProperties'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/modules.nix:810:25:

          809|   */
          810|   dischargeProperties = def:
             |                         ^
          811|     if def._type or "" == "merge" then

       … while evaluating the attribute 'value'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/types.nix:497:38:

          496|               elemType
          497|               [{ inherit (def) file; value = def'; }]
             |                                      ^
          498|             ).optionalValue

       … while evaluating the attribute 'rustToolchain'

       at /nix/store/3hzlxfwysy6aiycm00b4k5fyxc5sjmwn-nix/lib/toolchains.nix:17:3:

           16|     ]).rust-bin;
           17|   rustToolchain = rust-bin.fromRustupToolchainFile (inputs.self + "/rust-toolchain");
             |   ^
           18|   rustNightly = rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {

       … while evaluating call site

       at /nix/store/3hzlxfwysy6aiycm00b4k5fyxc5sjmwn-nix/lib/toolchains.nix:17:19:

           16|     ]).rust-bin;
           17|   rustToolchain = rust-bin.fromRustupToolchainFile (inputs.self + "/rust-toolchain");
             |                   ^
           18|   rustNightly = rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {

       … while calling 'fromRustupToolchainFile'

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:116:29:

          115|   # Same as `fromRustupToolchain` but read from a `rust-toolchain` file (legacy one-line string or in TOML).
          116|   fromRustupToolchainFile = path: let
             |                             ^
          117|     content = readFile path;

       … while evaluating call site

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:121:10:

          120|     then fromRustupToolchain { channel = head legacy; }
          121|     else fromRustupToolchain (fromTOML content).toolchain;
             |          ^
          122|

       … while calling 'fromRustupToolchain'

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:92:25:

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

       … while evaluating call site

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:97:21:

           96|       let
           97|         toolchain = toolchainFromManifest (selectManifest { inherit channel; });
             |                     ^
           98|         profile' = if profile == null then "default" else profile;

       … while calling 'toolchainFromManifest'

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:254:27:

          253|   #                       you will need to specify this extension in the extensions options or it will not be installed!
          254|   toolchainFromManifest = manifest: let
             |                           ^
          255|     maybeRename = name: manifest.renames.${name}.to or name;

       … while evaluating call site

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:342:5:

          341|     # so others can easily check it by `toolchain ? default`.
          342|     optionalAttrs (componentSet ? ${rustHostPlatform}) result //
             |     ^
          343|     {

       … while calling 'optionalAttrs'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/attrsets.nix:610:5:

          609|     # The attribute set to return if `cond` is `true`.
          610|     as:
             |     ^
          611|     if cond then as else {};

       … while evaluating call site

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:261:9:

          260|       listToAttrs (
          261|         flatten (
             |         ^
          262|           mapAttrsToList (compName: { target, ... }:

       … while calling 'flatten'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/lists.nix:138:13:

          137|   */
          138|   flatten = x:
             |             ^
          139|     if isList x

       … while evaluating call site

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:262:11:

          261|         flatten (
          262|           mapAttrsToList (compName: { target, ... }:
             |           ^
          263|             map (platform: { name = platform; value = true; })

       … while calling 'mapAttrsToList'

       at /nix/store/cjpmfag2c31x4k8pfxbi99vxwb63jvk9-source/lib/attrsets.nix:478:5:

          477|     # Attribute set to map over.
          478|     attrs:
             |     ^
          479|     map (name: f name attrs.${name}) (attrNames attrs);

       … while evaluating call site

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:97:44:

           96|       let
           97|         toolchain = toolchainFromManifest (selectManifest { inherit channel; });
             |                                            ^
           98|         profile' = if profile == null then "default" else profile;

       … while calling 'selectManifest'

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:37:20:

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

       … while evaluating call site

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:71:7:

           70|     else if asVersion != null then
           71|       assertWith (date == null) "Stable version with specific date is not supported" (
             |       ^
           72|         # "1.49"

       … while calling 'assertWith'

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/rust-overlay.nix:40:29:

           39|
           40|     assertWith = cond: msg: body: if cond then body else throw msg;
             |                             ^
           41|

       … while evaluating the attribute 'stable."1.71.0"'

       at /nix/store/r1d0fkqp0dmkbw9j6fz8qf8s9q4mg1nl-source/manifest.nix:120:7:

          119|     manifests = {
          120|       stable  = uncompressManifestSet "stable"  (import ./manifests/stable);
             |       ^
          121|       beta    = uncompressManifestSet "beta"    (import ./manifests/beta);

       error: Stable 1.71.0 is not available

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions