I installed KiCAD via the nixpkgs-unstable channel on my ArchLinux box. I’m just starting to learn the software and found that the default libraries are missing symbols for the LTC4331, and figured it was a good opportunity to learn how to create my own parts/symbols/libraries in KiCAD.
Well, I created the part, but saving it has become an issue. I can’t save it to the default symbol library in the nix store (it’s read only), so I figured I’d create a place in $HOME/.local/share/kicad/libraries
to store my custom parts in, and configure KiCAD to look in said folder in addition to the default location for symbols.
I cannot figure out how to do this, and I’m hoping someone using KiCAD on Nix has already solved this problem. KiCAD uses env vars to set paths for symbols, footprints, templates, etc, but those env vars are hard-coded by the derivation in the generated executable wrapper script.
So my question is one of the following:
- How does one create a custom parts library in Nix’s KiCAD?
- How does one override the env vars to add user paths without recompiling KiCAD from scratch?