Skip to content

Commit

Permalink
insync: Check if arch is x86_64 before downloading the binary.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Peyroux authored and grahamc committed Jun 3, 2017
1 parent fe1f560 commit 3badf79
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkgs/applications/networking/insync/default.nix
Expand Up @@ -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 ];

Expand Down

0 comments on commit 3badf79

Please sign in to comment.