2016-04-13 02:06:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, libusb }:
|
|
|
|
|
2016-02-09 00:00:05 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "sunxi-tools-1.3";
|
|
|
|
|
2016-04-13 02:06:15 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linux-sunxi";
|
|
|
|
repo = "sunxi-tools";
|
2016-02-09 00:00:05 +00:00
|
|
|
rev = "be1b4c7400161b90437432076360c1f99970f54f";
|
2016-04-13 02:06:15 +01:00
|
|
|
sha256 = "02pqaaahra4wbv325264qh5i17mxwicmjx9nm33nw2dpmfmg9xhr";
|
2016-02-09 00:00:05 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libusb ];
|
2016-02-09 00:00:05 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make all misc
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp bin2fex fex2bin phoenix_info sunxi-bootinfo sunxi-fel sunxi-fexc sunxi-nand-part sunxi-pio $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tools for Allwinner A10 devices";
|
|
|
|
homepage = http://linux-sunxi.org/;
|
|
|
|
license = licenses.gpl2Plus;
|
2016-04-13 02:06:15 +01:00
|
|
|
platforms = platforms.linux;
|
2016-02-09 00:00:05 +00:00
|
|
|
maintainers = with maintainers; [ elitak ];
|
|
|
|
};
|
|
|
|
}
|