From a9df2ff821173231124a75b39a4e00ef936076d9 Mon Sep 17 00:00:00 2001 From: Woze Parrot Date: Mon, 17 Jul 2023 15:01:41 -0400 Subject: [PATCH] seaweedfs: 3.53 -> 3.54 --- .../networking/seaweedfs/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/seaweedfs/default.nix b/pkgs/applications/networking/seaweedfs/default.nix index 160485dd0c3d..91e6fb58f49a 100644 --- a/pkgs/applications/networking/seaweedfs/default.nix +++ b/pkgs/applications/networking/seaweedfs/default.nix @@ -1,5 +1,6 @@ { lib , fetchFromGitHub +, fetchpatch , buildGoModule , testers , seaweedfs @@ -7,16 +8,26 @@ buildGoModule rec { pname = "seaweedfs"; - version = "3.53"; + version = "3.54"; src = fetchFromGitHub { owner = "seaweedfs"; repo = "seaweedfs"; rev = version; - hash = "sha256-VfKzptMxT2ra1uVzbL52EWjEGHTxmnh5xZGiQpRivTU="; + hash = "sha256-2E2ANJIKWhUUxxSqk5+QROeoKnp1Akl5Bp+i8pPTkuQ="; }; - vendorHash = "sha256-kL6huukrM4YeU7uvj7abXOEAvRhm1Nfp4JODW4BTy0A="; + patches = [ + # Fix build on aarch64-darwin + # (remove again when v3.55 is released) + # https://github.com/seaweedfs/seaweedfs/pull/4679 + (fetchpatch { + url = "https://github.com/seaweedfs/seaweedfs/commit/1bfc9581e0bc04f394187a0d39f319ad65df5aca.patch"; + hash = "sha256-znQFtm8BYAjuvXa+vibawBb+uhnjOL9/o0sXNoXwLk8="; + }) + ]; + + vendorHash = "sha256-VK7BmApGq+X1oNjcwCSYHcEvVjL87t8fgJXLNQSfy3I="; subPackages = [ "weed" ];