2021-10-06 13:57:05 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, dtc, libusb1, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sunxi-tools";
|
2021-10-06 13:57:05 +00:00
|
|
|
version = "unstable-2021-08-29";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linux-sunxi";
|
|
|
|
repo = "sunxi-tools";
|
2021-10-06 13:57:05 +00:00
|
|
|
rev = "74273b671a3fc34048383c40c85c684423009fb9";
|
|
|
|
sha256 = "1gwamb64vr45iy2ry7jp1k3zc03q5sydmdflrbwr892f0ijh2wjl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-10-06 13:57:05 +00:00
|
|
|
buildInputs = [ dtc libusb1 zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
buildFlags = [ "tools" "misc" ];
|
|
|
|
|
|
|
|
installTargets = [ "install-tools" "install-misc" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tools for Allwinner SoC devices";
|
|
|
|
homepage = "http://linux-sunxi.org/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ elitak ];
|
|
|
|
};
|
|
|
|
}
|