Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11-beta 27 lines 889 B view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libusb1 }: 2 3stdenv.mkDerivation { 4 pname = "rkdeveloptool"; 5 version = "unstable-2021-04-08"; 6 7 src = fetchFromGitHub { 8 owner = "rockchip-linux"; 9 repo = "rkdeveloptool"; 10 rev = "46bb4c073624226c3f05b37b9ecc50bbcf543f5a"; 11 sha256 = "eIFzyoY6l3pdfCN0uS16hbVp0qzdG3MtcS1jnDX1Yk0="; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook pkg-config ]; 15 16 buildInputs = [ libusb1 ]; 17 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" ]; 20 21 meta = with lib; { 22 homepage = "https://github.com/rockchip-linux/rkdeveloptool"; 23 description = "A tool from Rockchip to communicate with Rockusb devices"; 24 license = licenses.gpl2; 25 maintainers = [ maintainers.lopsided98 ]; 26 }; 27}