insync: Check if arch is x86_64 before downloading the binary.

This commit is contained in:
Alexandre Peyroux 2017-06-01 01:38:41 +02:00 committed by Graham Christensen
parent fe1f560fef
commit 3badf79b48
No known key found for this signature in database
GPG Key ID: 06121D366FE9435C

View File

@ -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 ];