postgresqlPackages.pgroonga: 3.2.4 -> 3.2.5 (#365378)
[NixPkgs.git] / pkgs / applications / science / electronics / kicad / runtime_stock_data_path.patch
blob43e99a531cf5ac4278dc322b969cc5ca8c9989d8
1 diff --git a/common/paths.cpp b/common/paths.cpp
2 index a74cdd9..790cc58 100644
3 --- a/common/paths.cpp
4 +++ b/common/paths.cpp
5 @@ -151,6 +151,10 @@ wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )
7 wxString path;
9 + if( wxGetEnv( wxT( "NIX_KICAD8_STOCK_DATA_PATH" ), &path ) ) {
10 + return path;
11 + }
13 if( aRespectRunFromBuildDir && wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) )
15 // Allow debugging from build dir by placing relevant files/folders in the build root