@@ -24,11 +24,11 @@
2424let
2525 # NOTE: When updating, please also update in current stable,
2626 # as older versions stop working
27− version = "28.4.14";
27+ version = "29.4.20";
2828 sha256 =
2929 {
30− "x86_64-linux" = "02pfly33bg85c8y3igvkhyshra8ra089ghjibhzl1a4fmd45wf52";
31− "i686-linux" = "10swkjbzkyf19cilzw7ja6byla4dllr52pbz19wjzb8rv088gcla";
30+ "x86_64-linux" = "0w8n8q846mqq8f3yisn9xazf323sn579zyp1kwrdrmmqalwiwcl2";
31+ "i686-linux" = "0zgdnpizgkw2q6wglkdhpzzrhnpplfi2ldcw1z0k9r6slici5mfk";
3232 }."${stdenv.system}" or (throw "system ${stdenv.system} not supported");
3333
3434 arch =
@@ -40,7 +40,7 @@ let
4040 # relative location where the dropbox libraries are stored
4141 appdir = "opt/dropbox";
4242
43− ldpath = stdenv.lib.makeLibraryPath
43+ libs =
4444 [
4545 dbus_libs fontconfig freetype gcc.cc glib libdrm libffi libICE libSM
4646 libX11 libXcomposite libXext libXmu libXrender libxcb libxml2 libxslt
@@ -48,6 +48,7 @@ let
4848
4949 qtbase qtdeclarative qtwebkit
5050 ];
51+ ldpath = stdenv.lib.makeLibraryPath libs;
5152
5253 desktopItem = makeDesktopItem {
5354 name = "dropbox";
@@ -70,9 +71,12 @@ in mkDerivation {
7071 sourceRoot = ".dropbox-dist";
7172
7273 nativeBuildInputs = [ makeWrapper patchelf ];
74+ buildInputs = libs;
7375 dontStrip = true; # already done
7476
7577 installPhase = ''
78+ runHook preInstall
79+
7680 mkdir -p "$out/${appdir}"
7781 cp -r --no-preserve=mode "dropbox-lnx.${arch}-${version}"/* "$out/${appdir}/"
7882
@@ -102,9 +106,11 @@ in mkDerivation {
102106
103107 rm $out/${appdir}/wmctrl
104108 ln -s ${wmctrl}/bin/wmctrl $out/${appdir}/wmctrl
109+
110+ runHook postInstall
105111 '';
106112
107− fixupPhase = ''
113+ preFixup = ''
108114 INTERP=$(cat $NIX_CC/nix-support/dynamic-linker)
109115 RPATH="${ldpath}:$out/${appdir}"
110116 getType='s/ *Type: *\([A-Z]*\) (.*/\1/'