File tree Expand file tree Collapse file tree 1 file changed +10
-17
lines changed
pkgs/by-name/rk/rkflashtool Expand file tree Collapse file tree 1 file changed +10
-17
lines changed Original file line number Diff line number Diff line change 33 stdenv ,
44 fetchurl ,
55 libusb1 ,
6+ pkg-config ,
67} :
78
8- stdenv . mkDerivation rec {
9+ stdenv . mkDerivation ( finalAttrs : {
910 pname = "rkflashtool" ;
10- version = "5 .1" ;
11+ version = "6 .1" ;
1112
1213 src = fetchurl {
13- url = "mirror://sourceforge/rkflashtool/rkflashtool-${ version } -src.tar.bz2" ;
14- sha256 = "0dbp1crw7pjav9gffrnskhkf0gxlj4xgp65clqhvfmv32460xb9c" ;
15- } ;
16-
17- versionh = fetchurl {
18- url = "mirror://sourceforge/rkflashtool/version.h" ;
19- sha256 = "1mkcy3yyfaddhzg524hjnhvmwdmdfzbavib8d9p5y38pcqy8xgdp" ;
14+ url = "mirror://sourceforge/rkflashtool/rkflashtool-${ finalAttrs . version } -src.tar.bz2" ;
15+ hash = "sha256-K8DsWAyqeQsK7mNDiKkRCkKbr0uT/yxPzj2atYP1Ezk=" ;
2016 } ;
2117
2218 buildInputs = [ libusb1 ] ;
23-
24- preBuild = ''
25- cp $versionh version.h
26- '' ;
19+ nativeBuildInputs = [ pkg-config ] ;
2720
2821 installPhase = ''
2922 mkdir -p $out/bin
3023 cp rkunpack rkcrc rkflashtool rkparameters rkparametersblock rkunsign rkmisc $out/bin
3124 '' ;
3225
33- meta = with lib ; {
26+ meta = {
3427 homepage = "https://sourceforge.net/projects/rkflashtool/" ;
3528 description = "Tools for flashing Rockchip devices" ;
36- platforms = platforms . linux ;
29+ platforms = lib . platforms . linux ;
3730 maintainers = [ ] ;
38- license = licenses . bsd2 ;
31+ license = lib . licenses . bsd2 ;
3932 } ;
40- }
33+ } )
You can’t perform that action at this time.
0 commit comments