Skip to content

Instantly share code, notes, and snippets.

@hdonnay
Last active September 12, 2018 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdonnay/aa06a50944f4362d8fe19870c9b660de to your computer and use it in GitHub Desktop.
Save hdonnay/aa06a50944f4362d8fe19870c9b660de to your computer and use it in GitHub Desktop.
genrule(
name = "nasm.bin",
srcs = glob(["**/*"]),
outs = ["nasm"],
executable = True,
cmd = """
cd external/nasm
./configure
make nasm
install -vDm 0755 nasm $(@)
""",
visibility = ["//visibility:public"],
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
new_http_archive(
name = "nasm",
url = "https://www.nasm.us/pub/nasm/releasebuilds/2.13.02/nasm-2.13.02.tar.bz2",
sha256 = "8d3028d286be7c185ba6ae4c8a692fc5438c129b2a3ffad60cbdcedd2793bbbe",
strip_prefix = "nasm-2.13.02",
build_file = "BUILD.nasm",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment