Skip to content

Comments

fix: flake.nix build failure and deprecation warning#7408

Open
BridgerB wants to merge 2 commits intoblock:mainfrom
BridgerB:flake-nix-updates
Open

fix: flake.nix build failure and deprecation warning#7408
BridgerB wants to merge 2 commits intoblock:mainfrom
BridgerB:flake-nix-updates

Conversation

@BridgerB
Copy link

Summary

  • Remove stale outputHashes for crunchy-0.2.3Cargo.lock now has crunchy 0.2.4 from crates.io (not a git dependency), so the old outputHashes entry causes nix build to fail with: "A hash was specified for crunchy-0.2.3, but there is no corresponding git dependency"
  • Replace deprecated defaultPackage with packages.defaultdefaultPackage has been deprecated since Nix 2.7

Test plan

  • nix build completes without the crunchy hash error
  • No deprecation warning about defaultPackage

The outputHashes entry for crunchy-0.2.3 references a git dependency
that no longer exists in Cargo.lock. The lock file now has crunchy 0.2.4
from crates.io (not a git source), so the outputHashes entry causes
`nix build` to fail with:

  "A hash was specified for crunchy-0.2.3, but there is no
  corresponding git dependency"

Signed-off-by: BridgerB <git@bridgerb.com>
defaultPackage has been deprecated since Nix 2.7 in favor of
packages.default. This avoids the evaluation warning:

  "warning: flake attribute 'defaultPackage.x86_64-linux' is
  deprecated; use 'packages.x86_64-linux.default' instead"

Signed-off-by: BridgerB <git@bridgerb.com>
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

Successfully merging this pull request may close these issues.

1 participant