blob: fa37c98966eb97dba2b533f27a1fdadf4a6d908d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ lib, stdenv, fetchurl, libusb1 }:
stdenv.mkDerivation rec {
pname = "rkflashtool";
version = "5.1";
src = fetchurl {
url = "mirror://sourceforge/rkflashtool/rkflashtool-${version}-src.tar.bz2";
sha256 = "0dbp1crw7pjav9gffrnskhkf0gxlj4xgp65clqhvfmv32460xb9c";
};
versionh = fetchurl {
url = "mirror://sourceforge/rkflashtool/version.h";
sha256 = "1mkcy3yyfaddhzg524hjnhvmwdmdfzbavib8d9p5y38pcqy8xgdp";
};
buildInputs = [ libusb1 ];
preBuild = ''
cp $versionh version.h
'';
installPhase = ''
mkdir -p $out/bin
cp rkunpack rkcrc rkflashtool rkparameters rkparametersblock rkunsign rkmisc $out/bin
'';
meta = with lib; {
homepage = "https://sourceforge.net/projects/rkflashtool/";
description = "Tools for flashing Rockchip devices";
platforms = platforms.linux;
maintainers = [ maintainers.viric ];
license = licenses.bsd2;
};
}
|