1diff --git a/common/paths.cpp b/common/paths.cpp
2index a74cdd9..790cc58 100644
3--- a/common/paths.cpp
4+++ b/common/paths.cpp
5@@ -151,6 +151,10 @@ wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )
6 {
7 wxString path;
8
9+ if( wxGetEnv( wxT( "NIX_KICAD9_STOCK_DATA_PATH" ), &path ) ) {
10+ return path;
11+ }
12+
13 if( aRespectRunFromBuildDir && wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) )
14 {
15 // Allow debugging from build dir by placing relevant files/folders in the build root