1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-18 00:49:41 +01:00
nixos-hardware/starfive/visionfive/v2/spl-tool.nix

19 lines
458 B
Nix
Raw Normal View History

2023-04-16 22:43:32 +02:00
{ 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
'';
}