2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libusb1 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "rkdeveloptool";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "unstable-2021-04-08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rockchip-linux";
|
|
|
|
repo = "rkdeveloptool";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "46bb4c073624226c3f05b37b9ecc50bbcf543f5a";
|
|
|
|
sha256 = "eIFzyoY6l3pdfCN0uS16hbVp0qzdG3MtcS1jnDX1Yk0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
# main.cpp:1568:36: error: '%s' directive output may be truncated writing up to 557 bytes into a region of size 5
|
2022-08-12 12:06:08 +00:00
|
|
|
CPPFLAGS = lib.optionals stdenv.cc.isGNU [ "-Wno-error=format-truncation" ];
|
2021-04-08 16:26:57 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/rockchip-linux/rkdeveloptool";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool from Rockchip to communicate with Rockusb devices";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.lopsided98 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "rkdeveloptool";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|