NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.3k stars 13.54k forks source link

KiCAD 5 missing modules #49089

Closed crawford closed 5 years ago

crawford commented 5 years ago

Issue description

KISYSMOD and KISYS3DMOD point to missing directories. On my system they are /nix/store/dlx19m6rpfh79nqng9n7yxflr1vkqyn0-kicad-5.0.0/share/kicad/modules and /nix/store/dlx19m6rpfh79nqng9n7yxflr1vkqyn0-kicad-5.0.0/share/kicad/modules/packages3d/, respectively. Neither of these paths exist though. I do see a few other kicad-5.0.0 directories in the Nix store, but I'm not sure if I should use those (and if so, which one).

Steps to reproduce

  1. rm -rf ~/.config/kicad
  2. kicad
  3. View the environment variables (Preferences > Configure Paths...)

Technical details

 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.76, NixOS, 18.09.932.09195057114 (Jellyfish)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.1.1`
 - channels(root): `"nixos-18.09.932.09195057114"`
 - channels(alex): `"nixpkgs-18.09pre151052.4477cf04b67"`
 - nixpkgs: `/home/alex/.nix-defexpr/channels/nixpkgs`
wirew0rm commented 5 years ago

The library is also supposed to be at /nix/store/v6lx1n4ilkkh33ym55avkj7wz665lkh9-kicad-5.0.2/share/kicad/library which does not exist while KICAD_SYMBOL_DIR points to it.

gebner commented 5 years ago

Mostly fixed by #57452. Symbols and footprints are now included, and the variables point to the correct location. We don't have the 3D models by default as they're five gigabytes, for that you need to use the kicad-with-packages3d derivation (which unfortunately means recompiling kicad for now).