X-Git-Url: http://git.scottworley.com/nix-pin-deps/blobdiff_plain/07fdf1857a827f51d951444ec7f4fd41dfdaa11e..b40df7e83263cad58e6c7c6ef417ecbfc37541d9:/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()