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

use_std: command not found #1

Open
sshine opened this issue Jul 20, 2024 · 1 comment
Open

use_std: command not found #1

sshine opened this issue Jul 20, 2024 · 1 comment

Comments

@sshine
Copy link

sshine commented Jul 20, 2024

Does this setup make assumptions about what's installed on the system?

  • If I search for use_std: command not found, it seems to be related to C/C++ packages being available?
  • "devshells" appears to be a typo from "devShells"? Changing it, though, errors with "attempt to call something which is not a function but a set", so that's not right either.
~/Projects/tmp/demo ❯ nix flake init -t github:divnix/rust-flake
wrote: /home/sshine/Projects/tmp/demo/.gitignore
wrote: /home/sshine/Projects/tmp/demo/nix/hello/packages.nix
wrote: /home/sshine/Projects/tmp/demo/nix/hello
wrote: /home/sshine/Projects/tmp/demo/nix/automation/devshells.nix
wrote: /home/sshine/Projects/tmp/demo/nix/automation
wrote: /home/sshine/Projects/tmp/demo/nix/rust/packages.nix
wrote: /home/sshine/Projects/tmp/demo/nix/rust
wrote: /home/sshine/Projects/tmp/demo/nix
wrote: /home/sshine/Projects/tmp/demo/flake.nix
wrote: /home/sshine/Projects/tmp/demo/.envrc
wrote: /home/sshine/Projects/tmp/demo/rustfmt.toml
wrote: /home/sshine/Projects/tmp/demo/treefmt.toml
direnv: error /home/sshine/Projects/tmp/demo/.envrc is blocked. Run `direnv allow` to approve its content                                          
~/Projects/tmp/demo ❯ direnv allow
direnv: loading ~/Projects/tmp/demo/.envrc                                                                                                         
warning: ignoring untrusted substituter 'https://nix-community.cachix.org', you are not a trusted user.
Run `man nix.conf` for more information on the `substituters` configuration option.
warning: input 'crane' has an override for a non-existent input 'flake-utils'
warning: creating lock file '/home/sshine/Projects/tmp/demo/flake.lock'
error:
       … while calling the 'elemAt' builtin

         at /nix/store/4v8nn2z2vl74yz1557n1dha3l7rzzbgs-source/grow/grow-on.nix:79:11:

           78|         if length values == 1 || head a then
           79|           elemAt a 1
             |           ^
           80|         else

       … while calling the 'head' builtin

         at /nix/store/4v8nn2z2vl74yz1557n1dha3l7rzzbgs-source/grow/grow-on.nix:65:92:

           64|     v1 = !(isAttrs l && isAttrs r);
           65|     v2 = if attrPath == ["__std" "ci"] || attrPath == ["__std" "init"] then flatten v else head v;
             |                                                                                            ^
           66|   in [v1 v2];

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'devshells' missing

       at /nix/store/hgsi689rj9z6vf5bidc5fivjiwpcjghv-source/flake.nix:24:10:

           23|       cellBlocks = [
           24|         (std.devshells "devshells")
             |          ^
           25|         (std.installables "packages")
       Did you mean devShells?
./.envrc:4: : No such file or directory
direnv: using std cells //automation/devshells:dev
environment:1110: use_std: command not found
@skabber
Copy link

skabber commented Dec 12, 2024

Same error here.

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