mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Adding rkflashtool, to flash MK802IV.
This commit is contained in:
parent
158462e323
commit
4fcdc32924
33
pkgs/tools/misc/rkflashtool/default.nix
Normal file
33
pkgs/tools/misc/rkflashtool/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ 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 = ''
|
||||||
|
ensureDir $out/bin
|
||||||
|
cp rkflashtool $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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1868,6 +1868,8 @@ let
|
|||||||
|
|
||||||
ripmime = callPackage ../tools/networking/ripmime {};
|
ripmime = callPackage ../tools/networking/ripmime {};
|
||||||
|
|
||||||
|
rkflashtool = callPackage ../tools/misc/rkflashtool { };
|
||||||
|
|
||||||
rmlint = callPackage ../tools/misc/rmlint {};
|
rmlint = callPackage ../tools/misc/rmlint {};
|
||||||
|
|
||||||
rng_tools = callPackage ../tools/security/rng-tools { };
|
rng_tools = callPackage ../tools/security/rng-tools { };
|
||||||
|
Loading…
Reference in New Issue
Block a user