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