divnix / std

A DevOps framework for the SDLC with the power of Nix and Flakes. Good for keeping deadlines!
https://std.divnix.com
399 stars 43 forks source link

attribute 'lib' missing #390

Open srghma opened 2 months ago

srghma commented 2 months ago

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 commented 2 months ago

fixed

  inherit (inputs) std self cells nixpkgs;

  crane = (inputs.crane.mkLib nixpkgs).overrideToolchain cells.repo.rust.toolchain;
blaggacao commented 2 months ago

@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 commented 2 months ago

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

whs-dot-hk commented 2 months ago

Oic, it was depreciated