Skip to content

Commit ebe4301

Browse files
authored
rkflashtool: 5.1 -> 6.1 (#399264)
2 parents 64eb19b + f6cee2b commit ebe4301

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

pkgs/by-name/rk/rkflashtool/package.nix

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,31 @@
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+
})

0 commit comments

Comments
 (0)