-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Description
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 convertnix hash convert [--hash-algo (sha256|md5|...)] --from base16|...|sri --to (base64|...) <strings>...-
the 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 guess
-
-
nix hash path:nix hash path --hash-algo (sha256|md5|...) --to (base16|...|sri) --mode nar|flat|git <path>algois mandatory, any default would be arbitrary- collapse modes to
nar(serialise the directory as a NAR and hash that),flat(single file, error on directory),git(directory, according to RFC 133)
Reactions are currently unavailable
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
Projects
Status
Done
Status
Done