2014-02-10 17:34:35 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libtool
|
|
|
|
, libXext
|
|
|
|
, libSM
|
|
|
|
, libICE
|
|
|
|
, libX11
|
|
|
|
, libXft
|
|
|
|
, libXau
|
|
|
|
, libXdmcp
|
|
|
|
, libXrender
|
|
|
|
, freetype
|
|
|
|
, fontconfig
|
|
|
|
, openssl
|
2013-04-11 20:42:32 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2014-02-10 17:34:35 +01:00
|
|
|
version = "1.94.407";
|
2013-04-11 20:42:32 +02:00
|
|
|
|
|
|
|
rpath = stdenv.lib.makeSearchPath "lib" [
|
|
|
|
stdenv.glibc
|
|
|
|
stdenv.gcc.gcc
|
|
|
|
libtool
|
|
|
|
libXext
|
|
|
|
libSM
|
|
|
|
libICE
|
|
|
|
libX11
|
|
|
|
libXft
|
|
|
|
libXau
|
|
|
|
libXdmcp
|
|
|
|
libXrender
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
2014-02-10 17:34:35 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloads.hipchat.com/linux/arch/hipchat-${version}-i686.pkg.tar.xz";
|
|
|
|
sha256 = "0kyjpa2ir066zqkvs1zmnx6kvl8v4jfl8h7bw110cgigwmiplk7k";
|
|
|
|
};
|
2013-04-11 20:42:32 +02:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "hipchat-${version}";
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
tar xf ${src}
|
|
|
|
mkdir -p $out
|
|
|
|
mv opt/HipChat/lib $out
|
|
|
|
mv opt/HipChat/bin $out
|
|
|
|
mv usr/share $out
|
|
|
|
patchShebangs $out/bin
|
|
|
|
for file in $(find $out/lib -type f); do
|
2014-02-10 17:34:35 +01:00
|
|
|
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $file || true
|
|
|
|
patchelf --set-rpath ${rpath}:$out/lib $file || true
|
2013-04-11 20:42:32 +02:00
|
|
|
done
|
2013-05-14 14:29:53 +02:00
|
|
|
substituteInPlace $out/share/applications/hipchat.desktop \
|
|
|
|
--replace /opt/HipChat/bin $out/bin
|
2013-04-11 20:42:32 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "HipChat Desktop Client";
|
|
|
|
homepage = http://www.hipchat.com;
|
2013-04-12 14:37:50 +02:00
|
|
|
license = stdenv.lib.licenses.unfree;
|
2013-04-11 20:42:32 +02:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|