sunxi-tools: Use upstream install rule

This commit is contained in:
Tuomas Tynkkynen 2018-05-13 03:53:26 +03:00
parent 261bc1dc3a
commit 714aff4004

View File

@ -13,14 +13,11 @@ stdenv.mkDerivation {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libusb zlib ];
buildPhase = ''
make tools misc
'';
makeFlags = [ "PREFIX=$(out)" ];
installPhase = ''
mkdir -p $out/bin
cp bin2fex fex2bin phoenix_info sunxi-bootinfo sunxi-fel sunxi-fexc sunxi-nand-image-builder sunxi-nand-part sunxi-pio $out/bin
'';
buildFlags = [ "tools" "misc" ];
installTargets = [ "install-tools" "install-misc" ];
meta = with stdenv.lib; {
description = "Tools for Allwinner A10 devices";