BUCK
1 # src/examples/simdjson/BUCK 2 # 3 # simdjson demo - SIMD-accelerated JSON parsing at 4+ GB/s 4 # 5 # Demonstrates the Nix-Buck2 contract: 6 # - deps = ["nixpkgs#simdjson"] - any derivation is valid 7 # - nix_resolve rule calls nix-analyze at execution time 8 # - nix_binary uses the resolved flags 9 # - DICE tracks the dep graph for incrementality 10 11 load("@toolchains//:nix_genrule.bzl", "nix_cxx_binary") 12 13 nix_cxx_binary( 14 name = "twitter", 15 srcs = ["twitter.cpp"], 16 deps = ["nixpkgs#simdjson"], 17 std = "c++20", 18 extra_cflags = ["-O2"], 19 visibility = ["PUBLIC"], 20 )