mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	Init starfive visionfive 2
This commit is contained in:
		
							
								
								
									
										18
									
								
								starfive/visionfive/v2/spl-tool.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								starfive/visionfive/v2/spl-tool.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
{ stdenv, fetchFromGitHub }:
 | 
			
		||||
 | 
			
		||||
stdenv.mkDerivation rec{
 | 
			
		||||
  pname = "spi_tool";
 | 
			
		||||
  version = "0x01010101";
 | 
			
		||||
  src = fetchFromGitHub {
 | 
			
		||||
    owner = "starfive-tech";
 | 
			
		||||
    repo = "soft_3rdpart";
 | 
			
		||||
    rev = "cd7b50cd9f9eca66c23ebd19f06a172ce0be591f";
 | 
			
		||||
    sha256 = "sha256-hRmP74gz0Y9KnSwXCjxEiArJE+FonI9rGghZTK54qGs=";
 | 
			
		||||
    sparseCheckout = [ "spl_tool" ];
 | 
			
		||||
  };
 | 
			
		||||
  sourceRoot = "source/spl_tool";
 | 
			
		||||
  installPhase = ''
 | 
			
		||||
    mkdir -p $out/bin
 | 
			
		||||
    cp spl_tool $out/bin
 | 
			
		||||
  '';
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user