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