1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libusb1 }:
4 pname = "rkdeveloptool";
5 version = "unstable-2021-04-08";
7 src = fetchFromGitHub {
8 owner = "rockchip-linux";
9 repo = "rkdeveloptool";
10 rev = "46bb4c073624226c3f05b37b9ecc50bbcf543f5a";
11 sha256 = "eIFzyoY6l3pdfCN0uS16hbVp0qzdG3MtcS1jnDX1Yk0=";
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
16 buildInputs = [ libusb1 ];
18 # main.cpp:1568:36: error: '%s' directive output may be truncated writing up to 557 bytes into a region of size 5
19 CPPFLAGS = lib.optionals stdenv.cc.isGNU [ "-Wno-error=format-truncation" ];
22 homepage = "https://github.com/rockchip-linux/rkdeveloptool";
23 description = "Tool from Rockchip to communicate with Rockusb devices";
24 license = licenses.gpl2Only;
25 maintainers = [ maintainers.lopsided98 ];
26 mainProgram = "rkdeveloptool";