X-Git-Url: http://git.scottworley.com/nix-pin-deps/blobdiff_plain/07fdf1857a827f51d951444ec7f4fd41dfdaa11e..ac783e5803ab562c1b7ce17b1b4ab6b5af95006d:/nix_pin_deps.py diff --git a/nix_pin_deps.py b/nix_pin_deps.py index 30aef6d..6f12df8 100644 --- a/nix_pin_deps.py +++ b/nix_pin_deps.py @@ -96,6 +96,11 @@ def pinBuiltThings(thing: str, pinBuiltThings(dep, done, deps) -dep_graph = getDeps(sys.argv[1]) -for root in dep_graph.roots: - pinBuiltThings(root, set(), dep_graph.deps) +def main() -> None: + dep_graph = getDeps(sys.argv[1]) + for root in dep_graph.roots: + pinBuiltThings(root, set(), dep_graph.deps) + + +if __name__ == '__main__': + main()