about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/sunxi-tools/default.nix
blob: 320fcb1b04cd2c67d3735be34e952937b0da4a49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenv, fetchFromGitHub, pkg-config, dtc, libusb1, zlib }:

stdenv.mkDerivation rec {
  pname = "sunxi-tools";
  version = "unstable-2021-08-29";

  src = fetchFromGitHub {
    owner = "linux-sunxi";
    repo = "sunxi-tools";
    rev = "74273b671a3fc34048383c40c85c684423009fb9";
    sha256 = "1gwamb64vr45iy2ry7jp1k3zc03q5sydmdflrbwr892f0ijh2wjl";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ dtc libusb1 zlib ];

  makeFlags = [ "PREFIX=$(out)" ];

  buildFlags = [ "tools" "misc" ];

  installTargets = [ "install-tools" "install-misc" ];

  meta = with lib; {
    description = "Tools for Allwinner SoC devices";
    homepage = "http://linux-sunxi.org/";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ elitak ];
  };
}