1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-30 06:49:43 +01:00
nixos-hardware/starfive/visionfive/v2/spl-tool.nix
2023-04-18 09:19:48 +02:00

18 lines
458 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec{
pname = "spi_tool";
version = "0x01010101";
src = fetchFromGitHub {
owner = "starfive-tech";
repo = "soft_3rdpart";
rev = "89ff3396250538548643c3322f74640712b80893";
sha256 = "sha256-Ni3pBWKgr4bYJb/uJ+5EbSQl6JwWoO2lZFk2Xpi63IA=";
sparseCheckout = [ "spl_tool" ];
};
sourceRoot = "source/spl_tool";
installPhase = ''
mkdir -p $out/bin
cp spl_tool $out/bin
'';
}