2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkgconfig, libusb1, zlib }:
|
2016-04-13 03:06:15 +02:00
|
|
|
|
2016-02-09 01:00:05 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-11-25 03:04:13 +01:00
|
|
|
name = "sunxi-tools-20181113";
|
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-11-25 03:04:13 +01:00
|
|
|
rev = "6d598a0ed714201380e78130213500be6512942b";
|
|
|
|
sha256 = "1yhl6jfl2cws596ymkyhm8h9qkcvp67v8hlh081lsaqv1i8j9yig";
|
2016-02-09 01:00:05 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-04-04 12:34:31 +02:00
|
|
|
buildInputs = [ libusb1 zlib ];
|
2016-02-09 01:00:05 +01:00
|
|
|
|
2018-05-13 02:53:26 +02:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2016-02-09 01:00:05 +01:00
|
|
|
|
2018-05-13 02:53:26 +02:00
|
|
|
buildFlags = [ "tools" "misc" ];
|
|
|
|
|
|
|
|
installTargets = [ "install-tools" "install-misc" ];
|
2016-02-09 01:00:05 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-25 03:04:13 +01:00
|
|
|
description = "Tools for Allwinner SoC devices";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://linux-sunxi.org/";
|
2016-02-09 01:00:05 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|