diff --git a/pkgs/by-name/se/seaweedfs/package.nix b/pkgs/by-name/se/seaweedfs/package.nix index df8ae59e1a78..927632d2748b 100644 --- a/pkgs/by-name/se/seaweedfs/package.nix +++ b/pkgs/by-name/se/seaweedfs/package.nix @@ -1,18 +1,15 @@ { buildGoModule, fetchFromGitHub, - iana-etc, installShellFiles, lib, - libredirect, - glibc, nix-update-script, stdenv, versionCheckHook, }: buildGoModule (finalAttrs: { pname = "seaweedfs"; - version = "4.24"; + version = "4.31"; src = fetchFromGitHub { owner = "seaweedfs"; @@ -25,26 +22,12 @@ buildGoModule (finalAttrs: { find "$out" -name .git -print0 | xargs -0 rm -rf popd ''; - hash = "sha256-PYVCoeO+EYZ87gNwd9r+wgkpoeLhKKmV8fOimKkqR6w"; + hash = "sha256-jhhLOjA+CXhtNyVHePT7dN3T5u5K3dHJj1gmxOh+RJU="; }; - postPatch = '' - # Remove unmaintained code that's not used and generates various issues. - rm -rf unmaintained - ''; + vendorHash = "sha256-eB5fkFDGOqw4q2iHe4acLfIx2/a1Ys1EmARGX/vIN84="; - vendorHash = "sha256-lTCfs/4FrICgb+uESM3XZBdinQw9Z0GrHkCIwmKSRh8"; - - buildInputs = [ - glibc.static - ]; - - nativeBuildInputs = [ - installShellFiles - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - libredirect.hook - ]; + nativeBuildInputs = [ installShellFiles ]; subPackages = [ "weed" ]; @@ -69,31 +52,14 @@ buildGoModule (finalAttrs: { }; preBuild = '' - export NIX_CFLAGS_LINK="-L${glibc.static}/lib" ldflags+=" -X \"github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=$(