fix: flake.nix build failure and deprecation warning#7408
Open
BridgerB wants to merge 2 commits intoblock:mainfrom
Open
fix: flake.nix build failure and deprecation warning#7408BridgerB wants to merge 2 commits intoblock:mainfrom
BridgerB wants to merge 2 commits intoblock:mainfrom
Conversation
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>
a4a1f69 to
937ffc2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
outputHashesforcrunchy-0.2.3—Cargo.locknow hascrunchy 0.2.4from crates.io (not a git dependency), so the oldoutputHashesentry causesnix buildto fail with:"A hash was specified for crunchy-0.2.3, but there is no corresponding git dependency"defaultPackagewithpackages.default—defaultPackagehas been deprecated since Nix 2.7Test plan
nix buildcompletes without the crunchy hash errordefaultPackage