Skip to content

crane.lib.<system> attribute missing in flake outputs for revision dfd9a8dfd09db9aad544c4d3b6c47b12562544a5` (and latest) in specific Nix environment #843

Answered by ipetkov
evanlhatch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @evanlhatch thanks for the report and the detailed reproduction!

The lib output was deprecated in #617 and subsequently removed in #692, so you'll need to change your configuration to use the mkLib output now. If you don't need to customize the nixpkgs instantiation you can use craneLib = inputs.crane.mkLib nixpkgs.legacyPackages.${system}; (or if you do need to customize the nixpkgs instantiation use craneLib = inputs.crane.mkLib pkgs;).

Take a look at the most recent version of any of the examples to get started. Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@evanlhatch
Comment options

Answer selected by ipetkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #842 on May 12, 2025 15:33.