nixpkgs/pkgs/tools/misc/rkflashtool/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
909 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libusb1 }:
2014-05-14 11:59:36 +04:00
stdenv.mkDerivation rec {
pname = "rkflashtool";
version = "5.1";
2014-05-14 11:59:36 +04:00
src = fetchurl {
url = "mirror://sourceforge/rkflashtool/rkflashtool-${version}-src.tar.bz2";
2014-05-14 11:59:36 +04:00
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
2014-05-14 11:59:36 +04:00
'';
meta = with lib; {
homepage = "https://sourceforge.net/projects/rkflashtool/";
2014-05-14 11:59:36 +04:00
description = "Tools for flashing Rockchip devices";
2018-09-12 00:49:22 +03:00
platforms = platforms.linux;
maintainers = [ maintainers.viric ];
license = licenses.bsd2;
2014-05-14 11:59:36 +04:00
};
}