Last active
September 12, 2018 17:10
-
-
Save hdonnay/aa06a50944f4362d8fe19870c9b660de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
genrule( | |
name = "nasm.bin", | |
srcs = glob(["**/*"]), | |
outs = ["nasm"], | |
executable = True, | |
cmd = """ | |
cd external/nasm | |
./configure | |
make nasm | |
install -vDm 0755 nasm $(@) | |
""", | |
visibility = ["//visibility:public"], | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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