diff --git a/pkgs/development/python-modules/torchtune/default.nix b/pkgs/development/python-modules/torchtune/default.nix index d205aa25f51d..b086be9d1f53 100644 --- a/pkgs/development/python-modules/torchtune/default.nix +++ b/pkgs/development/python-modules/torchtune/default.nix @@ -119,5 +119,10 @@ buildPythonPackage rec { changelog = "https://github.com/meta-pytorch/torchtune/releases/tag/${src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ GaetanLepage ]; + badPlatforms = [ + # sentencepiece 0.21.0 segfaults when initialized on Darwin + # See https://github.com/NixOS/nixpkgs/issues/466092 + lib.systems.inspect.patterns.isDarwin + ]; }; }