Hi. The currently available nixpkg for Dropbox is broken -- it uses a download URL that redirects to the latest version, and thus the checksum is mismatched as soon as a newer version is out.
I've modified the expression to now download the specific version the expression knows of, and bump it up to the latest 1.4.0 release; please find the patch attached. The modified expression has been tested locally. Best regards, -- Michel Alexandre Salim
>From e2e98911d5827a34820730a93e9e39fb8b18a804 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim <[email protected]> Date: Tue, 1 May 2012 18:10:49 +0200 Subject: [PATCH] Update Dropbox to 1.4.0 --- pkgs/applications/networking/dropbox/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/dropbox/default.nix b/pkgs/applications/networking/dropbox/default.nix index f8d97a4..f1a906f 100644 --- a/pkgs/applications/networking/dropbox/default.nix +++ b/pkgs/applications/networking/dropbox/default.nix @@ -21,8 +21,8 @@ assert stdenv.system == "x86_64-linux"; let - version = "1.2.52"; - sha256 = "72aeaf00727da9f3fe39386dcf883bb303de928ba43c738fcc5bb62b93eca252"; + version = "1.4.0"; + sha256 = "93933d95cce5956ed99342fa342d01ce2bde8d2e4339afb97f23e0c0ec98875e"; # relative location where the dropbox libraries are stored appdir = "opt/dropbox"; @@ -50,7 +50,10 @@ in stdenv.mkDerivation { name = "dropbox-${version}-bin"; src = fetchurl { name = "dropbox-${version}.tar.gz"; - url = "http://www.dropbox.com/download?plat=lnx.x86_64"; + # using version-specific URL so if the version is no longer available, + # build will fail without having to finish downloading first + # url = "http://www.dropbox.com/download?plat=lnx.x86_64"; + url = "http://dl-web.dropbox.com/u/17/dropbox-lnx.x86_64-${version}.tar.gz"; inherit sha256; }; -- 1.7.9.5
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
