about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2020-04-18 20:13:07 +0100
committerEmery Hemingway <ehmry@posteo.net>2020-05-04 17:43:29 +0530
commit2fb5dac372fedd482ef3c65b608810bb7dd45083 (patch)
tree75ec1616f88b40e3a8d8717cf694a8513376255c /pkgs/build-support
parent7457c78989b0ded64c86aec449ac249c40cb54bd (diff)
downloadnixlib-2fb5dac372fedd482ef3c65b608810bb7dd45083.tar
nixlib-2fb5dac372fedd482ef3c65b608810bb7dd45083.tar.gz
nixlib-2fb5dac372fedd482ef3c65b608810bb7dd45083.tar.bz2
nixlib-2fb5dac372fedd482ef3c65b608810bb7dd45083.tar.lz
nixlib-2fb5dac372fedd482ef3c65b608810bb7dd45083.tar.xz
nixlib-2fb5dac372fedd482ef3c65b608810bb7dd45083.tar.zst
nixlib-2fb5dac372fedd482ef3c65b608810bb7dd45083.zip
nix-prefetch-git: also add store path to json output
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-xpkgs/build-support/fetchgit/nix-prefetch-git1
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 abba76bd1ac9..43f7c5acd5ad 100755
--- a/pkgs/build-support/fetchgit/nix-prefetch-git
+++ b/pkgs/build-support/fetchgit/nix-prefetch-git
@@ -373,6 +373,7 @@ print_results() {
   "url": "$(json_escape "$url")",
   "rev": "$(json_escape "$fullRev")",
   "date": "$(json_escape "$commitDateStrict8601")",
+  "path": "$(json_escape "$finalPath")",
   "$(json_escape "$hashType")": "$(json_escape "$hash")",
   "fetchSubmodules": $([[ -n "$fetchSubmodules" ]] && echo true || echo false),
   "deepClone": $([[ -n "$deepClone" ]] && echo true || echo false),