diff options
author | Alexandre Peyroux <alex@xn--wxa.email> | 2017-06-01 01:38:41 +0200 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2017-06-02 21:53:12 -0400 |
commit | 3badf79b48d2d29edcc385702e0c8020eae98138 (patch) | |
tree | 7e2af6d298d2c95d09e70d2adb28e30b1f1a8ec4 /pkgs/applications | |
parent | fe1f560fefc5510dd3d649893e440b62432b4c60 (diff) |
insync: Check if arch is x86_64 before downloading the binary.
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/insync/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/applications/networking/insync/default.nix b/pkgs/applications/networking/insync/default.nix index 7beb489178b6..5690705d1f28 100644 --- a/pkgs/applications/networking/insync/default.nix +++ b/pkgs/applications/networking/insync/default.nix @@ -3,10 +3,14 @@ stdenv.mkDerivation rec { name = "insync-${version}"; version = "1.3.16.36155"; - src = fetchurl { - url = "http://s.insynchq.com/builds/insync-portable_${version}_amd64.tar.bz2"; - sha256 = "1gf1qg7mkbcgqhwxkiljmd1w2zvarq6vhxhips3w06bqdyg12210"; - }; + src = + if stdenv.system == "x86_64-linux" then + fetchurl { + url = "http://s.insynchq.com/builds/insync-portable_${version}_amd64.tar.bz2"; + sha256 = "1gf1qg7mkbcgqhwxkiljmd1w2zvarq6vhxhips3w06bqdyg12210"; + } + else + throw "${name} is not supported on ${stdenv.system}"; buildInputs = [ makeWrapper ]; |