mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	nix-shell: use addToSearchPath
thx to @SomeoneSerge for the suggestion!
This commit is contained in:
		 Michael Hueschen
					Michael Hueschen
				
			
				
					committed by
					
						 Someone
						Someone
					
				
			
			
				
	
			
			
			 Someone
						Someone
					
				
			
						parent
						
							bf63d695b8
						
					
				
				
					commit
					c9b316c78f
				
			| @@ -221,15 +221,12 @@ effectiveStdenv.mkDerivation ( | |||||||
|         ; |         ; | ||||||
|  |  | ||||||
|       shell = mkShell { |       shell = mkShell { | ||||||
|         NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [ |  | ||||||
|           effectiveStdenv.cc.cc |  | ||||||
|         ]; |  | ||||||
|         name = "shell-${finalAttrs.finalPackage.name}"; |         name = "shell-${finalAttrs.finalPackage.name}"; | ||||||
|         description = "contains numpy and sentencepiece"; |         description = "contains numpy and sentencepiece"; | ||||||
|         buildInputs = [ llama-python ]; |         buildInputs = [ llama-python ]; | ||||||
|         inputsFrom = [ finalAttrs.finalPackage ]; |         inputsFrom = [ finalAttrs.finalPackage ]; | ||||||
|         shellHook = '' |         shellHook = '' | ||||||
|           export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH |           addToSearchPath "LD_LIBRARY_PATH" "${lib.getLib effectiveStdenv.cc.cc}/lib" | ||||||
|         ''; |         ''; | ||||||
|       }; |       }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user