-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Stabilise nix hash and subcommands #8876
Copy link
Copy link
Closed
Labels
RFCRelated to an accepted RFCRelated to an accepted RFCidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.The given proposal has been discussed and approved by the Nix team. An implementation is welcome.new-cliRelating to the "nix" commandRelating to the "nix" command
Milestone
Metadata
Metadata
Assignees
Labels
RFCRelated to an accepted RFCRelated to an accepted RFCidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.The given proposal has been discussed and approved by the Nix team. An implementation is welcome.new-cliRelating to the "nix" commandRelating to the "nix" command
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Status
Done
This implements NixOS/rfcs#136. This issue is agreed-upon by the https://github.com/orgs/NixOS/teams/nix-team.
Only leave these two commands, collapsing the existing ones into them:
nix hash convertthe current implementation makes
--fromoptional, but we are not quite sure how that works. If it doesn't seem robust, we can make it mandatory instead.--algois optional but will error if it can't infer from SRI or guessnix hash path:algois mandatory, any default would be arbitrarynar(serialise the directory as a NAR and hash that),flat(single file, error on directory),git(directory, according to RFC 133)