2021-09-05 22:27:18 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, dtc, libusb1, zlib }:
|
2016-04-13 01:06:15 +00:00
|
|
|
|
2021-06-20 10:34:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sunxi-tools";
|
2021-09-05 22:27:18 +00:00
|
|
|
version = "unstable-2021-08-29";
|
2016-02-09 00:00:05 +00:00
|
|
|
|
2016-04-13 01:06:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linux-sunxi";
|
|
|
|
repo = "sunxi-tools";
|
2021-09-05 22:27:18 +00:00
|
|
|
rev = "74273b671a3fc34048383c40c85c684423009fb9";
|
|
|
|
sha256 = "1gwamb64vr45iy2ry7jp1k3zc03q5sydmdflrbwr892f0ijh2wjl";
|
2016-02-09 00:00:05 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-09-05 22:27:18 +00:00
|
|
|
buildInputs = [ dtc libusb1 zlib ];
|
2016-02-09 00:00:05 +00:00
|
|
|
|
2018-05-13 00:53:26 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2016-02-09 00:00:05 +00:00
|
|
|
|
2018-05-13 00:53:26 +00:00
|
|
|
buildFlags = [ "tools" "misc" ];
|
|
|
|
|
|
|
|
installTargets = [ "install-tools" "install-misc" ];
|
2016-02-09 00:00:05 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-25 02:04:13 +00:00
|
|
|
description = "Tools for Allwinner SoC devices";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://linux-sunxi.org/";
|
2016-02-09 00:00:05 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2016-04-13 01:06:15 +00:00
|
|
|
platforms = platforms.linux;
|
2016-02-09 00:00:05 +00:00
|
|
|
maintainers = with maintainers; [ elitak ];
|
|
|
|
};
|
|
|
|
}
|