aboutsummaryrefslogtreecommitdiff
path: root/src/nix/path-info.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-11 23:50:16 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-03-24 14:26:23 +0100
commit777e21e596ec85f18eddf8b286d9ba4995010835 (patch)
tree5bd690c3111672c5e57c79081d309e5eb76647a2 /src/nix/path-info.cc
parent7a8de57d3e7e53a4f6d8060c7201f3fbbe6cd325 (diff)
nix path-info --json: Print hash in SRI format
(cherry picked from commit 442e665d6d3fcbdee7dece2f62a597142f8784b1)
Diffstat (limited to 'src/nix/path-info.cc')
-rw-r--r--src/nix/path-info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/path-info.cc b/src/nix/path-info.cc
index bffa7b356..45ec297d2 100644
--- a/src/nix/path-info.cc
+++ b/src/nix/path-info.cc
@@ -89,7 +89,7 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
store->pathInfoToJSON(jsonRoot,
// FIXME: preserve order?
storePathsToSet(storePaths),
- true, showClosureSize, AllowInvalid);
+ true, showClosureSize, SRI, AllowInvalid);
}
else {