-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Support base-64 and SRI in nix-hash #7688
Copy link
Copy link
Closed
Labels
cliThe old and/or new command line interfaceThe old and/or new command line interfacefeatureFeature request or proposalFeature request or proposalnew-cliRelating to the "nix" commandRelating to the "nix" command
Metadata
Metadata
Assignees
Labels
cliThe old and/or new command line interfaceThe old and/or new command line interfacefeatureFeature request or proposalFeature request or proposalnew-cliRelating to the "nix" commandRelating to the "nix" command
Fields
Give feedbackNo fields configured for issues without a type.
Is your feature request related to a problem? Please describe.
SRI hashes are becoming more and more popular. It enables the use of
hashattribute to pass the hash to the fetcher, making it easier to switch to a safer algorithm in the future. Besides, the base-64 coding is more standardized than the base-32 coding.The Nix command-line interface currently provide support through
but that requires enabling the
nix-commandexperimental feature.Describe the solution you'd like
Describe alternatives you've considered
Do nothing and keep forcing the non-flakers to type
Additional context
Eelco Dostra's comment recommending the use of SRI hashes: #4354 (comment)
Théo Zimmermann's comment about the lack of this feature NixOS/rfcs#131 (comment)
A Nix RFC proposal (0131) to enforce the use of SRI hashes: NixOS/rfcs#131
Priorities
Add 👍 to issues you find important.