mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
7f29d1882e
(cherry picked from commit 56e0562cdb
)
34 lines
853 B
Nix
34 lines
853 B
Nix
{ stdenv, fetchurl, libusb1 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rkflashtool-5.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/rkflashtool/${name}-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 = {
|
|
homepage = http://sourceforge.net/projects/rkflashtool/;
|
|
description = "Tools for flashing Rockchip devices";
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.viric ];
|
|
};
|
|
}
|