You should add `depends_on "xz" => :build` for .xz files.