@@ -6,12 +6,12 @@ def _ripunzip_archive_impl(repository_ctx):
66 arch = repository_ctx .os .arch
77 if arch == "aarch64" :
88 deb_arch = "arm64"
9- sha256 = repository_ctx .attr .sha256_linux_arm
10- canonical_id = "ripunzip-linux-arm "
9+ sha256 = repository_ctx .attr .sha256_linux_arm64
10+ canonical_id = "ripunzip-linux-arm64 "
1111 else :
1212 deb_arch = "amd64"
13- sha256 = repository_ctx .attr .sha256_linux
14- canonical_id = "ripunzip-linux"
13+ sha256 = repository_ctx .attr .sha256_linux_x64
14+ canonical_id = "ripunzip-linux-x64 "
1515
1616 # ripunzip only provides a deb package for Linux: we fish the binary out of it
1717 # a deb archive contains a data.tar.xz one which contains the files to be installed under usr/bin
@@ -29,20 +29,20 @@ def _ripunzip_archive_impl(repository_ctx):
2929 elif "windows" in repository_ctx .os .name :
3030 repository_ctx .download_and_extract (
3131 url = "%s/ripunzip_v%s_x86_64-pc-windows-msvc.zip" % (url_prefix , version ),
32- canonical_id = "ripunzip-windows" ,
33- sha256 = repository_ctx .attr .sha256_windows ,
32+ canonical_id = "ripunzip-windows-x64 " ,
33+ sha256 = repository_ctx .attr .sha256_windows_x64 ,
3434 output = "bin" ,
3535 )
3636 elif "mac os" in repository_ctx .os .name :
3737 arch = repository_ctx .os .arch
3838 if arch == "x86_64" :
3939 suffix = "x86_64-apple-darwin"
40- sha256 = repository_ctx .attr .sha256_macos_intel
41- canonical_id = "ripunzip-macos-intel "
40+ sha256 = repository_ctx .attr .sha256_macos_x64
41+ canonical_id = "ripunzip-macos-x64 "
4242 elif arch == "aarch64" :
4343 suffix = "aarch64-apple-darwin"
44- sha256 = repository_ctx .attr .sha256_macos_arm
45- canonical_id = "ripunzip-macos-arm "
44+ sha256 = repository_ctx .attr .sha256_macos_arm64
45+ canonical_id = "ripunzip-macos-arm64 "
4646 else :
4747 fail ("Unsupported macOS architecture: %s" % arch )
4848 repository_ctx .download_and_extract (
@@ -61,10 +61,10 @@ ripunzip_archive = repository_rule(
6161 doc = "Downloads a prebuilt ripunzip binary for the host platform from https://github.com/GoogleChrome/ripunzip/releases" ,
6262 attrs = {
6363 "version" : attr .string (mandatory = True ),
64- "sha256_linux " : attr .string (mandatory = True ),
65- "sha256_linux_arm " : attr .string (mandatory = True ),
66- "sha256_windows " : attr .string (mandatory = True ),
67- "sha256_macos_intel " : attr .string (mandatory = True ),
68- "sha256_macos_arm " : attr .string (mandatory = True ),
64+ "sha256_linux_x64 " : attr .string (mandatory = True ),
65+ "sha256_linux_arm64 " : attr .string (mandatory = True ),
66+ "sha256_windows_x64 " : attr .string (mandatory = True ),
67+ "sha256_macos_x64 " : attr .string (mandatory = True ),
68+ "sha256_macos_arm64 " : attr .string (mandatory = True ),
6969 },
7070)
0 commit comments