aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorYorick <yorick.vanpelt@serokell.io>2021-04-13 21:14:16 +0200
committerGitHub <noreply@github.com>2021-04-13 21:14:16 +0200
commit88c8804b4fb2253c9970bb06d9e534c347dfea4e (patch)
tree63b57686bb7090aed47818cb81004f72d2a20ac3 /src/libstore
parent8a0c00b85600991cdb9aa05902defec6ac44b777 (diff)
parentc2dfda007e777a33cd487a5631f0d143f915dd43 (diff)
Merge pull request #4 from domenkozar/libcompress-tests
add tests for zstd compression
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/binary-cache-store.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc
index 4f5f8607d..09e1c254b 100644
--- a/src/libstore/binary-cache-store.cc
+++ b/src/libstore/binary-cache-store.cc
@@ -179,6 +179,9 @@ ref<const ValidPathInfo> BinaryCacheStore::addToStoreCommon(
narInfo->url = "nar/" + narInfo->fileHash->to_string(Base32, false) + ".nar"
+ (compression == "xz" ? ".xz" :
compression == "bzip2" ? ".bz2" :
+ compression == "zstd" ? ".zst" :
+ compression == "lzip" ? ".lzip" :
+ compression == "lz4" ? ".lz4" :
compression == "br" ? ".br" :
"");