std icon indicating copy to clipboard operation
std copied to clipboard

attribute 'lib' missing

Open srghma opened this issue 1 year ago • 4 comments

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

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

https://github.com/divnix/std/blob/f8f6f70cdc9234d36d3d445d99a60b9267644df8/src/std/templates/rust/nix/hello/packages.nix#L7

       … 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 {

https://github.com/ipetkov/crane/pull/652

srghma avatar Sep 02 '24 05:09 srghma

@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?

blaggacao avatar Sep 02 '24 06:09 blaggacao

https://github.com/ipetkov/crane/commit/6f7504ad93304e8ddf29c0b82442f61c03900ccb#diff-206b9ce276ab5971a2489d75eb1b12999d4bf3843b7988cbe8d687cfde61dea0L127

whs-dot-hk avatar Sep 02 '24 07:09 whs-dot-hk

Oic, it was depreciated

whs-dot-hk avatar Sep 02 '24 07:09 whs-dot-hk