From 5a4a9c63d78ad5a0815f2cf50c91058e160dd1e8 Mon Sep 17 00:00:00 2001
From: Eike Kettner <eike.kettner@posteo.de>
Date: Sun, 11 Apr 2021 23:35:14 +0200
Subject: [PATCH] Update nix setup

---
 nix/release.nix | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/nix/release.nix b/nix/release.nix
index 751156be..584b723a 100644
--- a/nix/release.nix
+++ b/nix/release.nix
@@ -1,5 +1,20 @@
 rec {
   cfg = {
+    v0_22_0 = rec {
+      version = "0.22.0";
+      server = {
+        url = "https://github.com/eikek/docspell/releases/download/v${version}/docspell-restserver-${version}.zip";
+        sha256 = "1lysbqc62c2ijqg948wh882b6609mhal9n4ab9y4xjs788lfvd7h";
+      };
+      joex = {
+        url = "https://github.com/eikek/docspell/releases/download/v${version}/docspell-joex-${version}.zip";
+        sha256 = "0g5ajkrsnbdig0hw5nz1g75ghvds6f2389zy2ccs4zfjws6xp1nr";
+      };
+      tools = {
+        url = "https://github.com/eikek/docspell/releases/download/v${version}/docspell-tools-${version}.zip";
+        sha256 = "00n9z2z06hr431xascpxmb6vn5lc2a3hz4p2ap3zc1nbkkdwmkh2";
+      };
+    };
     v0_21_0 = rec {
       version = "0.21.0";
       server = {
@@ -332,7 +347,7 @@ rec {
     };
   };
   pkg = v: import ./pkg.nix v;
-  currentPkg = pkg cfg.v0_21_0;
+  currentPkg = pkg cfg.v0_22_0;
   module-joex = ./module-joex.nix;
   module-restserver = ./module-server.nix;
   module-consumedir = ./module-consumedir.nix;