1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-01 16:49:40 +01:00
nixos-hardware/pine64/star64/spl-tool.nix

19 lines
458 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec{
pname = "spi_tool";
version = "unstable-2023-04-14";
src = fetchFromGitHub {
owner = "starfive-tech";
repo = "Tools";
rev = "693661d4ba314424f76c06da1bbb799e9b534c9f";
hash = "sha256-POWwpIIPnquJs/bpC3Pn94skua3SZvyfICPBglO7HnU=";
sparseCheckout = [ "spl_tool" ];
};
sourceRoot = "source/spl_tool";
installPhase = ''
mkdir -p $out/bin
cp spl_tool $out/bin
'';
}