diff options
author | PedroHLC ☭ <root@pedrohlc.com> | 2023-07-01 13:00:08 -0300 |
---|---|---|
committer | PedroHLC ☭ <root@pedrohlc.com> | 2023-07-09 14:46:58 -0300 |
commit | 0142902fc47c001e00a27309255a86b8e75697d0 (patch) | |
tree | 4d66ad9d1182c5caa6e3882742f28838aa684ce5 /pkgs/build-support/fetchgit | |
parent | 381f0e0c9a1cbabb01850e37fadf5271e6efe28e (diff) | |
download | nixpkgs-0142902fc47c001e00a27309255a86b8e75697d0.tar nixpkgs-0142902fc47c001e00a27309255a86b8e75697d0.tar.gz nixpkgs-0142902fc47c001e00a27309255a86b8e75697d0.tar.bz2 nixpkgs-0142902fc47c001e00a27309255a86b8e75697d0.tar.lz nixpkgs-0142902fc47c001e00a27309255a86b8e75697d0.tar.xz nixpkgs-0142902fc47c001e00a27309255a86b8e75697d0.tar.zst nixpkgs-0142902fc47c001e00a27309255a86b8e75697d0.zip |
nix-prefetch-git: add sri-hash to output
Diffstat (limited to 'pkgs/build-support/fetchgit')
-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 ae2e3600800..79ab699bcc2 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), |