1 { lib, stdenv, fetchurl, libusb1 }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/rkflashtool/rkflashtool-${version}-src.tar.bz2";
9 sha256 = "0dbp1crw7pjav9gffrnskhkf0gxlj4xgp65clqhvfmv32460xb9c";
13 url = "mirror://sourceforge/rkflashtool/version.h";
14 sha256 = "1mkcy3yyfaddhzg524hjnhvmwdmdfzbavib8d9p5y38pcqy8xgdp";
17 buildInputs = [ libusb1 ];
20 cp $versionh version.h
25 cp rkunpack rkcrc rkflashtool rkparameters rkparametersblock rkunsign rkmisc $out/bin
29 homepage = "https://sourceforge.net/projects/rkflashtool/";
30 description = "Tools for flashing Rockchip devices";
31 platforms = platforms.linux;
33 license = licenses.bsd2;