nixpkgs/pkgs/development/tools/sunxi-tools/default.nix

30 lines
760 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig, libusb, zlib }:
2016-02-08 16:00:05 -08:00
stdenv.mkDerivation {
2018-11-24 18:04:13 -08:00
name = "sunxi-tools-20181113";
2016-02-08 16:00:05 -08:00
src = fetchFromGitHub {
owner = "linux-sunxi";
repo = "sunxi-tools";
2018-11-24 18:04:13 -08:00
rev = "6d598a0ed714201380e78130213500be6512942b";
sha256 = "1yhl6jfl2cws596ymkyhm8h9qkcvp67v8hlh081lsaqv1i8j9yig";
2016-02-08 16:00:05 -08:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libusb zlib ];
2016-02-08 16:00:05 -08:00
2018-05-12 17:53:26 -07:00
makeFlags = [ "PREFIX=$(out)" ];
2016-02-08 16:00:05 -08:00
2018-05-12 17:53:26 -07:00
buildFlags = [ "tools" "misc" ];
installTargets = [ "install-tools" "install-misc" ];
2016-02-08 16:00:05 -08:00
meta = with stdenv.lib; {
2018-11-24 18:04:13 -08:00
description = "Tools for Allwinner SoC devices";
2016-02-08 16:00:05 -08:00
homepage = http://linux-sunxi.org/;
license = licenses.gpl2Plus;
platforms = platforms.linux;
2016-02-08 16:00:05 -08:00
maintainers = with maintainers; [ elitak ];
};
}