Revert "Update hipchat"

This reverts commit 54288f5cfe.
This commit is contained in:
Rob Vermaas 2014-02-10 17:34:35 +01:00
parent 00b1461e4f
commit e9a894a97d
2 changed files with 22 additions and 27 deletions

View File

@ -1,12 +1,21 @@
{ stdenv, fetchurl, libtool, libXext, libSM, libICE, libX11, libXft, libXau, libXdmcp, libXrender { stdenv
, libxcb, libXfixes, libXcomposite, libXi, dbus, freetype, fontconfig, openssl, zlib, mesa , fetchurl
, libxslt, libxml2 , libtool
, libXext
, libSM
, libICE
, libX11
, libXft
, libXau
, libXdmcp
, libXrender
, freetype
, fontconfig
, openssl
}: }:
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
let let
version = "2.1.982"; version = "1.94.407";
rpath = stdenv.lib.makeSearchPath "lib" [ rpath = stdenv.lib.makeSearchPath "lib" [
stdenv.glibc stdenv.glibc
@ -20,29 +29,15 @@ let
libXau libXau
libXdmcp libXdmcp
libXrender libXrender
libxcb
libXfixes
libXcomposite
libXi
dbus
freetype freetype
fontconfig fontconfig
openssl openssl
zlib
mesa
libxslt
libxml2
]; ];
src = src = fetchurl {
if stdenv.system == "i686-linux" then fetchurl { url = "http://downloads.hipchat.com/linux/arch/hipchat-${version}-i686.pkg.tar.xz";
url = "http://downloads.hipchat.com/linux/arch/i686/hipchat-${version}-i686.pkg.tar.xz"; sha256 = "0kyjpa2ir066zqkvs1zmnx6kvl8v4jfl8h7bw110cgigwmiplk7k";
sha256 = "1i60fkl5hdx2p2yfsx9w8qkzn6hl8fajvfls0r0gc2bqc9whg6vn"; };
} else fetchurl {
url = "http://downloads.hipchat.com/linux/arch/x86_64/hipchat-${version}-x86_64.pkg.tar.xz";
sha256 = "12bn4la9z1grkbcnixjwhadgxa2g6qkd5x7r3l3vn1sdalgal4ks";
};
in stdenv.mkDerivation { in stdenv.mkDerivation {
name = "hipchat-${version}"; name = "hipchat-${version}";
@ -54,8 +49,8 @@ in stdenv.mkDerivation {
mv usr/share $out mv usr/share $out
patchShebangs $out/bin patchShebangs $out/bin
for file in $(find $out/lib -type f); do for file in $(find $out/lib -type f); do
patchelf --set-interpreter $(cat $NIX_GCC/nix-support/dynamic-linker) $file || true patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $file || true
patchelf --set-rpath ${rpath}:${stdenv.lib.optionalString stdenv.is64bit "${stdenv.gcc.gcc}/lib64:"}$out/lib $file || true patchelf --set-rpath ${rpath}:$out/lib $file || true
done done
substituteInPlace $out/share/applications/hipchat.desktop \ substituteInPlace $out/share/applications/hipchat.desktop \
--replace /opt/HipChat/bin $out/bin --replace /opt/HipChat/bin $out/bin

View File

@ -8120,7 +8120,7 @@ let
hexedit = callPackage ../applications/editors/hexedit { }; hexedit = callPackage ../applications/editors/hexedit { };
hipchat = callPackage ../applications/networking/instant-messengers/hipchat { }; hipchat = callPackage_i686 ../applications/networking/instant-messengers/hipchat { };
homebank = callPackage ../applications/office/homebank { }; homebank = callPackage ../applications/office/homebank { };