--- BUILD.bazel
+++ BUILD.bazel
@@ -95,6 +95,9 @@
         "stream_helper.h",
         "typedparams.go",
     ],
+    cdeps = [
+        "@//nix/cc:libvirt",
+    ],
     cgo = True,
     importpath = "libvirt.org/go/libvirt",
     visibility = ["//visibility:public"],
