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