nix: provide a python2 toolchain

This allows us to use rules_docker from NixOS. However, the built
binaries are broken because of the Docker base image not being NixOS
based.

Change-Id: I29b93f1bae1575b04f97265c67497081d11a1910
diff --git a/third_party/nix/BUILD b/third_party/nix/BUILD
index c0821e6..12ae0fa 100644
--- a/third_party/nix/BUILD
+++ b/third_party/nix/BUILD
@@ -1,6 +1,6 @@
 load("@rules_python//python:defs.bzl", "py_runtime_pair")
 
-# Python3 toolchain definition that uses //third_party/nix:python.nix (via
+# Python toolchain definition that uses //third_party/nix:python.nix (via
 # external repository).
 
 py_runtime(
@@ -9,8 +9,16 @@
     python_version = "PY3",
 )
 
+py_runtime(
+    name = "py2_runtime",
+    interpreter = "@hscloud_nix_python2//:python2",
+    python_version = "PY2",
+)
+
+
 py_runtime_pair(
     name = "py_runtime_pair",
+    py2_runtime = ":py2_runtime",
     py3_runtime = ":py3_runtime",
 )