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

Improve error message for missing pkgs #26

Open
rizo opened this issue Jul 24, 2024 · 1 comment
Open

Improve error message for missing pkgs #26

rizo opened this issue Jul 24, 2024 · 1 comment

Comments

@rizo
Copy link
Owner

rizo commented Jul 24, 2024

nix develop -f default.nix -j auto -i -k TERM -k PATH -k HOME -v shell
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'nix-shell'
         whose name attribute is located at /nix/store/zhzn4n299d4z0cxq50bmbm3sxxhaa7i8-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:334:7

       … while evaluating attribute 'buildInputs' of derivation 'nix-shell'

         at /nix/store/zhzn4n299d4z0cxq50bmbm3sxxhaa7i8-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:381:7:

          380|       depsHostHost                = elemAt (elemAt dependencies 1) 0;
          381|       buildInputs                 = elemAt (elemAt dependencies 1) 1;
             |       ^
          382|       depsTargetTarget            = elemAt (elemAt dependencies 2) 0;

       error: attribute '""' missing

       at /nix/store/gfh9vqp59rybks8mr7js7qb7qlki3xp0-source/nix/api.nix:325:38:

          324|       rootPkgNames = opamRootsToPackageNames config.opamFiles;
          325|       rootPkgs = builtins.map (name: allPkgs.${name}) rootPkgNames;
             |                                      ^
          326|
       Did you mean one of pp or re?
make: *** [onix.mk:4: shell] Error 1
@rizo
Copy link
Owner Author

rizo commented Jul 24, 2024

Caused by using opam instead of pkg_name.opam.

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

1 participant