symlink symbols and footprint libraries into kicad-base so that kicad… (#518028)

This commit is contained in:
K900
2026-05-18 20:10:32 +00:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -62,6 +62,7 @@
debug,
sanitizeAddress,
sanitizeThreads,
templateDir ? null,
}:
assert lib.assertMsg (
@@ -207,6 +208,14 @@ stdenv.mkDerivation (finalAttrs: {
dontStrip = debug;
# KiCad looks for the stock library tables at
# KICAD_LIBRARY_DATA/template/{sym,fp}-lib-table, where KICAD_LIBRARY_DATA is
# compiled in as $out/share/kicad. Those files live in separate library packages.
postInstall = optionalString (templateDir != null) ''
rm -rf $out/share/kicad/template
ln -s ${templateDir} $out/share/kicad/template
'';
meta = {
description = "Just the built source without the libraries";
longDescription = ''
+1
View File
@@ -186,6 +186,7 @@ stdenv.mkDerivation rec {
inherit wxGTK python wxPython;
inherit withNgspice withScripting withI18n;
inherit debug sanitizeAddress sanitizeThreads;
templateDir = template_dir;
};
inherit pname;