Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 libusb1, 8}: 9 10stdenv.mkDerivation { 11 pname = "rkdeveloptool"; 12 version = "unstable-2025-03-07"; 13 14 src = fetchFromGitHub { 15 owner = "rockchip-linux"; 16 repo = "rkdeveloptool"; 17 rev = "304f073752fd25c854e1bcf05d8e7f925b1f4e14"; 18 sha256 = "sha256-GcSxkraJrDCz5ADO0XJk4xRrYTk0V5dAAim+D7ZiMJQ="; 19 }; 20 21 nativeBuildInputs = [ 22 autoreconfHook 23 pkg-config 24 ]; 25 26 buildInputs = [ libusb1 ]; 27 28 # main.cpp:1568:36: error: '%s' directive output may be truncated writing up to 557 bytes into a region of size 5 29 CPPFLAGS = lib.optionals stdenv.cc.isGNU [ "-Wno-error=format-truncation" ]; 30 31 meta = with lib; { 32 homepage = "https://github.com/rockchip-linux/rkdeveloptool"; 33 description = "Tool from Rockchip to communicate with Rockusb devices"; 34 license = licenses.gpl2Only; 35 maintainers = [ maintainers.lopsided98 ]; 36 mainProgram = "rkdeveloptool"; 37 }; 38}