Make sure you have nix-build
installed from nix then add the following to WORKSPACE:
http_archive(
name = "io_tweag_rules_nixpkgs",
strip_prefix = "rules_nixpkgs-53700e429928530f1566cfff3ec00283a123f17f",
urls = ["https://github.com/tweag/rules_nixpkgs/archive/53700e429928530f1566cfff3ec00283a123f17f.tar.gz"],