13 rev = "cce7d2a5c4efd4e7727c440868141229354b327b";
16 pname = "rkdeveloptool";
17 version = "unstable-2021-09-04";
20 url = "https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool/-/archive/${rev}/rkdeveloptool-${rev}.tar.gz";
21 sha256 = "sha256-u/x1Y1zZ19SYwNLVAvpqjH247RijyDJ1HTDWIsmqlFk=";
25 substituteInPlace meson.build --replace \
26 "udev_rules_dir = udev.get_pkgconfig_variable('udevdir') + '/rules.d'" \
27 "udev_rules_dir = '$out/lib/udev'"
30 nativeBuildInputs = [ meson ninja cmake pkg-config scdoc ];
32 buildInputs = [ libusb1 ];
36 inherit (lib) maintainers;
39 homepage = "https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool/";
40 description = "Tool from Rockchip to communicate with Rockusb devices (pine64 fork)";
41 license = lib.licenses.gpl2Only;
42 maintainers = [ maintainers.adisbladis ];
43 mainProgram = "rkdeveloptool";