nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libusb1 }:
2
3stdenv.mkDerivation {
4 pname = "rkdeveloptool";
5 version = "unstable-2021-02-03";
6
7 src = fetchFromGitHub {
8 owner = "rockchip-linux";
9 repo = "rkdeveloptool";
10 rev = "e607a5d6ad3f6af66d3daf3f6370e6dc9763a20d";
11 sha256 = "08m0yfds5rpr5l0s75ynfarq3hrv94l3aadld17cz5gqapqcfs2n";
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 = "-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}