How to recover all dependencies information when building a flake

Hello,
I am crosscompiling a flake and my output is a device image that I could flash into a rPI.
In buildroot or Yocto, there is an easy way to see what is the list of software packages compiled, with ther URL, the name, the commit id, the tag - if present.
In my case, I had some result by parsing recursively all drv from the root one, but I noticed that all builtin.fetchGit (as example) are missing.

Is there a way to extract such informations ?

I recently needed something similar, but I think as of now I only have tarballs and am missing git dependencies and probably other stuff as well: Get list of FODs in build time closure of package at eval time - #2 by mschwaig

It might make sense to pull that find-tarballs.nix code out of https://github.com/nix-community/nixpkgs-swh and turn it into a project of its own, which lists all of the FODs and builtin fetchers, if there is no other alternative out there that I don’t know about.

Depending on why you need that info something like GitHub - nikstur/bombon: Nix CycloneDX Software Bills of Materials (SBOMs) might also be useful to you.

builtins are not derivations. (other than the builtin functions derivation/derivationStrict)

But there’s things like this in derivation show --recursive :thinking::

"/nix/store/25ia79m53fjsdw9np26k27ck3a919ifi-openssl-3.3.2.tar.gz.drv": {
  "args": [],
  "builder": "builtin:fetchurl",
  "env": {
    "builder": "builtin:fetchurl",
    "executable": "",
    "impureEnvVars": "http_proxy https_proxy ftp_proxy all_proxy no_proxy",
    "name": "openssl-3.3.2.tar.gz",
    "out": "/nix/store/ci0jwzbixs95xx8am2h3pwdy8j2g275p-openssl-3.3.2.tar.gz",
    "outputHash": "sha256-LopAsBl5r+i+C7+z3l3BxnCf7bRtbInBDaEUq1/D0oE=",
    "outputHashAlgo": "",
    "outputHashMode": "flat",
    "preferLocalBuild": "1",
    "system": "builtin",
    "unpack": "",
    "url": "https://github.com/openssl/openssl/releases/download/openssl-3.3.2/openssl-3.3.2.tar.gz",
    "urls": "https://github.com/openssl/openssl/releases/download/openssl-3.3.2/openssl-3.3.2.tar.gz"
  },
  "inputDrvs": {},
  "inputSrcs": [],
  "name": "openssl-3.3.2.tar.gz",
  "outputs": {
    "out": {
      "hash": "2e8a40b01979afe8be0bbfb3de5dc1c6709fedb46d6c89c10da114ab5fc3d281",
      "hashAlgo": "sha256",
      "path": "/nix/store/ci0jwzbixs95xx8am2h3pwdy8j2g275p-openssl-3.3.2.tar.gz"
    }
  },
  "system": "builtin"
},