Following the issue linked here: macchina can't read GPU name from pci.ids · Issue #345963 · NixOS/nixpkgs · GitHub
pkgs.macchina
has a hardcoded path for pci.ids
, which leads to it not working on NixOS. So far it’s easy to determine that the problematic root is here, however I am not particularly sure how to apply such a fix into the package.
pkgs.macchina
uses another crate libmacchina
which internally uses pciid-parser
. That means that in order to patch this I likely have to step through two separate crates. I’m not sure how I can accomplish this, and I’m not able to find any info on the nixpkgs manual regarding this. The closest I got was cargoPatches
, but I am finding seldom info on how it can be used, and I’m not sure if its applicable to this case.