2021-01-17 02:30:45 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libusb1 }:
|
2018-12-30 22:27:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "rkdeveloptool";
|
2021-04-07 08:51:21 +01:00
|
|
|
version = "unstable-2021-02-03";
|
2018-12-30 22:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rockchip-linux";
|
|
|
|
repo = "rkdeveloptool";
|
2021-04-07 08:51:21 +01:00
|
|
|
rev = "e607a5d6ad3f6af66d3daf3f6370e6dc9763a20d";
|
|
|
|
sha256 = "08m0yfds5rpr5l0s75ynfarq3hrv94l3aadld17cz5gqapqcfs2n";
|
2018-12-30 22:27:41 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2018-12-30 22:27:41 +00:00
|
|
|
|
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
|
2021-04-07 08:51:21 +01:00
|
|
|
# main.cpp:1568:36: error: '%s' directive output may be truncated writing up to 557 bytes into a region of size 5
|
|
|
|
CPPFLAGS = "-Wno-error=format-truncation";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/rockchip-linux/rkdeveloptool";
|
2018-12-30 22:27:41 +00:00
|
|
|
description = "A tool from Rockchip to communicate with Rockusb devices";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.lopsided98 ];
|
|
|
|
};
|
|
|
|
}
|