diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-07-12 13:17:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-12 13:17:08 +0200 |
commit | 99152c0f2e2e35bcba16b92af2a25c63d2967487 (patch) | |
tree | ad3d7f56a1b8d33613b82cb34c8f656a9e65d1d5 /pkgs/build-support | |
parent | 92bf5820693b9c7b3a992de29db56a7377a3b15e (diff) | |
parent | 0142902fc47c001e00a27309255a86b8e75697d0 (diff) |
Merge pull request #240939 from PedroHLC/nix-prefetch-git-sri
nix-prefetch-git: add sri-hash to output
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index ae2e3600800b1..79ab699bcc25f 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -390,6 +390,7 @@ print_results() { "date": "$(json_escape "$commitDateStrict8601")", "path": "$(json_escape "$finalPath")", "$(json_escape "$hashType")": "$(json_escape "$hash")", + "hash": "$(nix-hash --to-sri --type $hashType $hash)", "fetchLFS": $([[ -n "$fetchLFS" ]] && echo true || echo false), "fetchSubmodules": $([[ -n "$fetchSubmodules" ]] && echo true || echo false), "deepClone": $([[ -n "$deepClone" ]] && echo true || echo false), |