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

attribute 'lib' missing #390

Open
srghma opened this issue Sep 2, 2024 · 4 comments
Open

attribute 'lib' missing #390

srghma opened this issue Sep 2, 2024 · 4 comments

Comments

@srghma
Copy link

srghma commented Sep 2, 2024

https://std.divnix.com/templates/rust.html

nix flake init -t github:divnix/std#rust
nix develop --show-trace

crane = inputs.crane.lib.overrideToolchain cells.repo.rust.toolchain;

       … while calling 'makeSearchPath'

         at /nix/store/887hpp8a2i99n9jjwcvz6qkhhhqsvzkg-source/lib/strings.nix:468:5:

          467|     subDir:
          468|     paths:
             |     ^
          469|     concatStringsSep ":" (map (path: path + "/" + subDir) (filter (x: x != null) paths));

       error: attribute 'lib' missing

       at /nix/store/c5j2bf3d11r9a1764jwq7sxiaya4i79j-nix/hello/packages.nix:7:11:

            6|
            7|   crane = inputs.crane.lib.overrideToolchain cells.repo.rust.toolchain;
             |           ^
            8| in {

ipetkov/crane#652

@srghma
Copy link
Author

srghma commented Sep 2, 2024

fixed

  inherit (inputs) std self cells nixpkgs;

  crane = (inputs.crane.mkLib nixpkgs).overrideToolchain cells.repo.rust.toolchain;

@blaggacao
Copy link
Collaborator

@srghma Thanks for the report.

I'm not in-context, atm, regarding that part of the code base.

Would you mind submitting a PR with a fix?

@whs-dot-hk
Copy link
Contributor

@whs-dot-hk
Copy link
Contributor

Oic, it was depreciated

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

3 participants