sunxi-tools: Don't build on darwin

http://hydra.nixos.org/build/34390183/nixlog/1/raw

While at it, use fetchFromGitHub.

+7 -5
+7 -5
pkgs/development/tools/sunxi-tools/default.nix
··· 1 - { stdenv, fetchgit, pkgconfig, libusb }: 1 + { stdenv, fetchFromGitHub, pkgconfig, libusb }: 2 + 2 3 stdenv.mkDerivation { 3 4 name = "sunxi-tools-1.3"; 4 5 5 - src = fetchgit { 6 - url = "https://github.com/linux-sunxi/sunxi-tools"; 6 + src = fetchFromGitHub { 7 + owner = "linux-sunxi"; 8 + repo = "sunxi-tools"; 7 9 rev = "be1b4c7400161b90437432076360c1f99970f54f"; 8 - sha256 = "0qbl4v66a3mvqai29q2y60zf2b5lj32mh9gyn44gfp0w2bsb10yj"; 10 + sha256 = "02pqaaahra4wbv325264qh5i17mxwicmjx9nm33nw2dpmfmg9xhr"; 9 11 }; 10 12 11 13 buildInputs = [ pkgconfig libusb ]; ··· 23 25 description = "Tools for Allwinner A10 devices"; 24 26 homepage = http://linux-sunxi.org/; 25 27 license = licenses.gpl2Plus; 26 - platforms = platforms.unix; 28 + platforms = platforms.linux; 27 29 maintainers = with maintainers; [ elitak ]; 28 30 }; 29 31 }