rkflashtool: 5.1 -> 6.1 (#399264)

authored by Elis Hirwing and committed by GitHub ebe4301c 64eb19b9

+10 -17
+10 -17
pkgs/by-name/rk/rkflashtool/package.nix
··· 3 3 stdenv, 4 4 fetchurl, 5 5 libusb1, 6 + pkg-config, 6 7 }: 7 8 8 - stdenv.mkDerivation rec { 9 + stdenv.mkDerivation (finalAttrs: { 9 10 pname = "rkflashtool"; 10 - version = "5.1"; 11 + version = "6.1"; 11 12 12 13 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="; 20 16 }; 21 17 22 18 buildInputs = [ libusb1 ]; 23 - 24 - preBuild = '' 25 - cp $versionh version.h 26 - ''; 19 + nativeBuildInputs = [ pkg-config ]; 27 20 28 21 installPhase = '' 29 22 mkdir -p $out/bin 30 23 cp rkunpack rkcrc rkflashtool rkparameters rkparametersblock rkunsign rkmisc $out/bin 31 24 ''; 32 25 33 - meta = with lib; { 26 + meta = { 34 27 homepage = "https://sourceforge.net/projects/rkflashtool/"; 35 28 description = "Tools for flashing Rockchip devices"; 36 - platforms = platforms.linux; 29 + platforms = lib.platforms.linux; 37 30 maintainers = [ ]; 38 - license = licenses.bsd2; 31 + license = lib.licenses.bsd2; 39 32 }; 40 - } 33 + })