Re:Proposal to add build graph output to GNU Make (2020)
by chriswarbo on Monday January 10, 2022 @04:51AM
(#29872492)
FYI you can get this from Nix by giving a .drv file to 'nix-store --query --tree' (a .drv file defines how to build something; it's like an individual Make rule (after all variables, etc. have been evaluated)).
You can get a .drv file using 'nix-instantiate' (or 'nix repl'), e.g.
It can also output other formats, like GraphML and GraphViz. Note that querying a build output will get its runtime dependencies instead of build-time dependencies.
You can get a .drv file using 'nix-instantiate' (or 'nix repl'), e.g.
It can also output other formats, like GraphML and GraphViz. Note that querying a build output will get its runtime dependencies instead of build-time dependencies.https://man.archlinux.org/man/community/nix/nix-store.1.en#S...