Skip to content

Instantly share code, notes, and snippets.

View atejeda's full-sized avatar
👽

atejeda atejeda

👽
  • 19:43 (UTC -04:00)
View GitHub Profile
@joseluisq
joseluisq / invalid_or_corrupted_package.md
Created August 1, 2018 20:51
How To Fix “invalid or corrupted package (PGP signature)” Error In Arch Linux
$ cat WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_tweag_rules_nixpkgs",
urls = ["https://github.com/tweag/rules_nixpkgs/archive/v0.5.2.tar.gz"],
strip_prefix = "rules_nixpkgs-0.5.2",
sha256 = "5a384daa57b49abf9f0b672852f1a66a3c52aecf9d4d2ac64f6de0fd307690c8",
)
@oquenchil
oquenchil / cc_static_library.bzl
Created October 6, 2021 12:55
Example cc_static_library.bzl
"""Provides a rule that outputs a monolithic static library."""
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain")
TOOLS_CPP_REPO = "@bazel_tools"
def _cc_static_library_impl(ctx):
output_lib = ctx.actions.declare_file("{}.a".format(ctx.attr.name))
output_flags = ctx.actions.declare_file("{}.link".format(ctx.attr.name))