nixpkgs/pkgs/applications/science/electronics/kicad/runtime_stock_data_path.patch
Evils 55e0055e12 kicad: 7.0.11 -> 8.0.0
switch to KICAD8 env vars

make the previously unstable dependencies stable
reenable the qa_eeschema test
and disable qa_spice

also bump testing and unstable
2024-03-20 21:09:42 +01:00

16 lines
529 B
Diff

diff --git a/common/paths.cpp b/common/paths.cpp
index a74cdd9..790cc58 100644
--- a/common/paths.cpp
+++ b/common/paths.cpp
@@ -151,6 +151,10 @@ wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )
{
wxString path;
+ if( wxGetEnv( wxT( "NIX_KICAD8_STOCK_DATA_PATH" ), &path ) ) {
+ return path;
+ }
+
if( aRespectRunFromBuildDir && wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) )
{
// Allow debugging from build dir by placing relevant files/folders in the build root