diff --git a/pkgs/by-name/cr/cryptomator/downgrade-fuse.patch b/pkgs/by-name/cr/cryptomator/downgrade-fuse.patch
new file mode 100644
index 000000000000..8daeee0a30f6
--- /dev/null
+++ b/pkgs/by-name/cr/cryptomator/downgrade-fuse.patch
@@ -0,0 +1,13 @@
+diff --git a/pom.xml b/pom.xml
+index fdaf9b328..2dbc69fb8 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -39,7 +39,7 @@
+ 1.6.0
+ 1.5.0
+ 1.7.0
+- 6.0.1
++ 5.1.0
+ 3.0.1
+ 1.2.12
+
diff --git a/pkgs/by-name/cr/cryptomator/package.nix b/pkgs/by-name/cr/cryptomator/package.nix
index 628b952157f2..e374518ca5cc 100644
--- a/pkgs/by-name/cr/cryptomator/package.nix
+++ b/pkgs/by-name/cr/cryptomator/package.nix
@@ -17,18 +17,30 @@ let
in
maven.buildMavenPackage rec {
pname = "cryptomator";
- version = "1.18.1";
+ version = "1.19.2";
src = fetchFromGitHub {
owner = "cryptomator";
repo = "cryptomator";
tag = version;
- hash = "sha256-C2pvToxIK8gPzmqcRKYCu4B2FBrOGcH2Uzpjdt3nZZs=";
+ hash = "sha256-9JWZaTsL2sfnGQAZI56T2iQnTNhERsFNFFCeLMB7WC0=";
};
+ patches = [
+ # fix for "java.lang.IllegalStateException: No fuse library found at expected path"
+ ./downgrade-fuse.patch
+ ];
+
mvnJdk = jdk;
mvnParameters = "-Dmaven.test.skip=true -Plinux";
- mvnHash = "sha256-dOpvojr6gVtDFE52eghOVZWGspRLQrTDotOMkVGaG9k=";
+ mvnHash = "sha256-IVOcDFW5YKgUHJKX3ZXYVnOevwmOwN5yEU8jfPtCY1I=";
+ mvnFetchExtraArgs.env = {
+ inherit SOURCE_DATE_EPOCH;
+ };
+
+ # fix for "date 1980-01-01T00:00:00Z is not within the valid range 1980-01-01T00:00:02Z to 2099-12-31T23:59:59Z"
+ # this should be in env, but looks like buildMavenPackage doesn't support that
+ SOURCE_DATE_EPOCH = 315532802; # 1980-01-01T00:00:02Z
preBuild = ''
VERSION=${version}