1 { lib, stdenv, fetchFromGitHub, pkg-config, dtc, libusb1, zlib }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2021-08-29";
7 src = fetchFromGitHub {
10 rev = "74273b671a3fc34048383c40c85c684423009fb9";
11 sha256 = "1gwamb64vr45iy2ry7jp1k3zc03q5sydmdflrbwr892f0ijh2wjl";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ dtc libusb1 zlib ];
17 makeFlags = [ "PREFIX=$(out)" ];
19 buildFlags = [ "tools" "misc" ];
21 installTargets = [ "install-tools" "install-misc" ];
24 description = "Tools for Allwinner SoC devices";
25 homepage = "http://linux-sunxi.org/";
26 license = licenses.gpl2Plus;
27 platforms = platforms.linux;
28 maintainers = with maintainers; [ elitak ];