Saw your flake on FlakeHub and thought I would give it a go. I added it to my config and tried running:
nix2sbom --current-system
and I got the following error:
[00:00:00.000] (7f28fe0877c0) INFO Getting the derivations from the current system.
[00:00:01.197] (7f28fe0877c0) INFO Found 10375 derivations
[00:00:01.197] (7f28fe0877c0) INFO Getting the metadata for packages in the Nix store
Error: "data did not match any variant of untagged enum PackageMaintainers at line 2361 column 7"
I tried some more things and got the same or similar looking errors:
â•â”€mcamp on butler in ~/code/campground-nvim on master🔥
╰─🚧 nix2sbom -f .#
[00:00:00.000] (7fc8d82b47c0) INFO Getting the derivations from file .#.
[00:00:02.779] (7fc8d82b47c0) INFO Found 4344 derivations
[00:00:02.779] (7fc8d82b47c0) INFO Getting the metadata for packages in the Nix store
Error: "data did not match any variant of untagged enum PackageMaintainers at line 2361 column 7"
â•â”€mcamp on butler in ~/code/campground-nvim on master🔥
╰─🚧 cd ../vault-secrets
â•â”€mcamp on butler in ~/code/vault-secrets on main✔️
╰─🚧 nix2sbom -f .#
[00:00:00.000] (7f0a885e47c0) INFO Getting the derivations from file .#.
[00:00:00.448] (7f0a885e47c0) INFO Found 654 derivations
[00:00:00.448] (7f0a885e47c0) INFO Getting the metadata for packages in the Nix store
Error: "data did not match any variant of untagged enum PackageMaintainers at line 2361 column 7"
campground-nvim
and vault-secrets
are flakes of mine, the nvim
one is based on nixvim
and the other is a simple shell script flake I was playing with the other night.
I very well might be doing something dumb, because I only marginally know what I'm doing. So if I am way out in left field let me know..