srid / nixci

Define and build CI for Nix projects anywhere; superceded by Omnix https://omnix.page/om/ci.html
GNU Affero General Public License v3.0
108 stars 5 forks source link

feat: add `--print-all-depedencies` to `nixci build` subcommand #60

Closed shivaraj-bh closed 3 months ago

shivaraj-bh commented 3 months ago

resolves #59

Uses nix-store --query --requisites --include-outputs <drv-path> to print all the build and runtime dependencies of a given derivation path.

Try it out:

nix run github:shivaraj-bh/nixci/print-all-deps -- build github:srid/haskell-template --print-all-dependencies
shivaraj-bh commented 3 months ago

@srid I am not sure how to add integration-test for —print-all-dependencies because there will system specific dependencies. To add to that, even the most basic packages like gnutar or gnused have about 700 dependencies on macOS.