1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 15:51:15 +02:00

add tests for zstd compression

This commit is contained in:
Domen Kožar 2021-04-09 23:13:08 +02:00
parent 8a0c00b856
commit c2dfda007e
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246
3 changed files with 32 additions and 0 deletions

View file

@ -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" :
"");