mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
insync: Check if arch is x86_64 before downloading the binary.
This commit is contained in:
parent
fe1f560fef
commit
3badf79b48
@ -3,10 +3,14 @@
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "insync-${version}";
|
name = "insync-${version}";
|
||||||
version = "1.3.16.36155";
|
version = "1.3.16.36155";
|
||||||
src = fetchurl {
|
src =
|
||||||
|
if stdenv.system == "x86_64-linux" then
|
||||||
|
fetchurl {
|
||||||
url = "http://s.insynchq.com/builds/insync-portable_${version}_amd64.tar.bz2";
|
url = "http://s.insynchq.com/builds/insync-portable_${version}_amd64.tar.bz2";
|
||||||
sha256 = "1gf1qg7mkbcgqhwxkiljmd1w2zvarq6vhxhips3w06bqdyg12210";
|
sha256 = "1gf1qg7mkbcgqhwxkiljmd1w2zvarq6vhxhips3w06bqdyg12210";
|
||||||
};
|
}
|
||||||
|
else
|
||||||
|
throw "${name} is not supported on ${stdenv.system}";
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user