symlink symbols and footprint libraries into kicad-base so that kicad… (#518028)
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
@@ -186,6 +186,7 @@ stdenv.mkDerivation rec {
|
||||
inherit wxGTK python wxPython;
|
||||
inherit withNgspice withScripting withI18n;
|
||||
inherit debug sanitizeAddress sanitizeThreads;
|
||||
templateDir = template_dir;
|
||||
};
|
||||
|
||||
inherit pname;
|
||||
|
||||
Reference in New Issue
Block a user