diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2015-05-18 15:34:15 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2015-05-18 15:44:48 -0500 |
commit | feec95b437e904f409c99f4e83c6d6a20b63e252 (patch) | |
tree | 138aa5959164aea4a4f7cb8178cde3b02601e385 | |
parent | db4993600c063a7bfc40f11c43e5431abbb2ca21 (diff) | |
download | nixpkgs-feec95b437e904f409c99f4e83c6d6a20b63e252.tar nixpkgs-feec95b437e904f409c99f4e83c6d6a20b63e252.tar.gz nixpkgs-feec95b437e904f409c99f4e83c6d6a20b63e252.tar.bz2 nixpkgs-feec95b437e904f409c99f4e83c6d6a20b63e252.tar.lz nixpkgs-feec95b437e904f409c99f4e83c6d6a20b63e252.tar.xz nixpkgs-feec95b437e904f409c99f4e83c6d6a20b63e252.tar.zst nixpkgs-feec95b437e904f409c99f4e83c6d6a20b63e252.zip |
dropbox: move updateable attributes to the top
-rw-r--r-- | pkgs/applications/networking/dropbox/default.nix | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/pkgs/applications/networking/dropbox/default.nix b/pkgs/applications/networking/dropbox/default.nix index 8a58450c5ea..060c5ee88b3 100644 --- a/pkgs/applications/networking/dropbox/default.nix +++ b/pkgs/applications/networking/dropbox/default.nix @@ -18,19 +18,25 @@ # them with our own. let - arch = if stdenv.system == "x86_64-linux" then "x86_64" - else if stdenv.system == "i686-linux" then "x86" - else throw "Dropbox client for: ${stdenv.system} not supported!"; - - interpreter = if stdenv.system == "x86_64-linux" then "ld-linux-x86-64.so.2" - else if stdenv.system == "i686-linux" then "ld-linux.so.2" - else throw "Dropbox client for: ${stdenv.system} not supported!"; - - # NOTE: When updating, please also update in current stable, as older versions stop working + # NOTE: When updating, please also update in current stable, as older versions stop working version = "3.4.6"; - sha256 = if stdenv.system == "x86_64-linux" then "0crhv21q48lwa86qcqgbcd9g73biibfrc2vgbavi67cwxvzcskky" - else if stdenv.system == "i686-linux" then "0kli84kzg1wcwszjni948zb4qih8mynmyqhdwyiv1l7v5lrhb8k2" - else throw "Dropbox client for: ${stdenv.system} not supported!"; + sha256 = + { + "x86_64-linux" = "0crhv21q48lwa86qcqgbcd9g73biibfrc2vgbavi67cwxvzcskky"; + "i686-linux" = "0kli84kzg1wcwszjni948zb4qih8mynmyqhdwyiv1l7v5lrhb8k2"; + }."${stdenv.system}" or (throw "system ${stdenv.system} not supported"); + + arch = + { + "x86_64-linux" = "x86_64"; + "i686-linux" = "x86"; + }."${stdenv.system}" or (throw "system ${stdenv.system} not supported"); + + interpreter = + { + "x86_64-linux" = "ld-linux-x86-64.so.2"; + "i686-linux" = "ld-linux.so.2"; + }."${stdenv.system}" or (throw "system ${stdenv.system} not supported"); # relative location where the dropbox libraries are stored appdir = "opt/dropbox"; |