From 30102158dc27f31839c5630a6f5994bc9f2629bf Mon Sep 17 00:00:00 2001 From: Hugo Sena Ribeiro Date: Mon, 13 Mar 2023 22:35:36 -0300 Subject: [PATCH 1/2] New compression formats Since Nix 2.4, there are more compression formats. https://github.com/NixOS/nix/blob/master/src/libstore/binary-cache-store.cc#L167 fix #4 --- api.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api.yaml b/api.yaml index 983898d..8508326 100644 --- a/api.yaml +++ b/api.yaml @@ -139,7 +139,13 @@ paths: example: xz schema: type: string - enum: [xz, bzip2] + enum: + - br + - bz2 + - lzip + - lz4 + - zst + - xz responses: 200: description: successful operation From 7ee07b85dae6e86624d21d4b7cef6dd7d7ed1f75 Mon Sep 17 00:00:00 2001 From: Hugo Sena Ribeiro Date: Mon, 13 Mar 2023 22:49:55 -0300 Subject: [PATCH 2/2] New compression formats --- api.yaml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/api.yaml b/api.yaml index 8508326..310f86b 100644 --- a/api.yaml +++ b/api.yaml @@ -139,13 +139,13 @@ paths: example: xz schema: type: string - enum: - - br - - bz2 - - lzip - - lz4 - - zst - - xz + enum: + - br + - bz2 + - lzip + - lz4 + - zst + - xz responses: 200: description: successful operation @@ -255,8 +255,15 @@ components: example: nar/1w1fff338fvdw53sqgamddn1b2xgds473pv6y13gizdbqjv4i5p3.nar.xz Compression: type: string - description: The compression method; either xz or bzip2. + description: The compression method example: xz + enum: + - br + - bz2 + - lzip + - lz4 + - zst + - xz FileHash: type: string description: The cryptographic hash of the file to download in base32