2014-05-14 09:59:36 +02:00
|
|
|
{ stdenv, fetchurl, libusb1 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rkflashtool-5.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/rkflashtool/${name}-src.tar.bz2";
|
|
|
|
sha256 = "0dbp1crw7pjav9gffrnskhkf0gxlj4xgp65clqhvfmv32460xb9c";
|
|
|
|
};
|
|
|
|
|
|
|
|
versionh = fetchurl {
|
|
|
|
url = "mirror://sourceforge/rkflashtool/version.h";
|
|
|
|
sha256 = "1mkcy3yyfaddhzg524hjnhvmwdmdfzbavib8d9p5y38pcqy8xgdp";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cp $versionh version.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 14:56:10 +02:00
|
|
|
mkdir -p $out/bin
|
2015-01-23 20:15:09 +01:00
|
|
|
cp rkunpack rkcrc rkflashtool rkparameters rkparametersblock rkunsign rkmisc $out/bin
|
2014-05-14 09:59:36 +02:00
|
|
|
'';
|
|
|
|
|
2018-09-11 23:49:22 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-11-10 22:13:27 +01:00
|
|
|
homepage = https://sourceforge.net/projects/rkflashtool/;
|
2014-05-14 09:59:36 +02:00
|
|
|
description = "Tools for flashing Rockchip devices";
|
2018-09-11 23:49:22 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.viric ];
|
|
|
|
license = licenses.bsd2;
|
2014-05-14 09:59:36 +02:00
|
|
|
};
|
|
|
|
}
|