2016-08-29 00:58:53 +02:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, perl, xulrunner, cmake, perlPackages, zip, unzip, pkgconfig
|
|
|
|
, libpulseaudio, glib, gtk, pixman, nspr, nss, libXScrnSaver
|
|
|
|
, scrnsaverproto
|
|
|
|
}:
|
2011-06-28 11:45:09 +02:00
|
|
|
|
2016-08-29 00:58:53 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "oneteam-unstable-2013-02-21";
|
2011-06-28 11:45:09 +02:00
|
|
|
|
2016-08-29 00:58:53 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "oneteam";
|
|
|
|
owner = "processone";
|
|
|
|
rev = "c51bc545c3a32db4ea8b96e43b84fcfc6b8d3d2a";
|
|
|
|
sha256 = "19104fwdaf0nnsr5w755fg8wwww5sh96wmn939gxa5ah155nf2w3";
|
|
|
|
};
|
2011-06-28 11:45:09 +02:00
|
|
|
|
2016-08-29 00:58:53 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake zip unzip ];
|
2011-06-28 11:45:09 +02:00
|
|
|
|
2016-08-29 00:58:53 +02:00
|
|
|
buildInputs =
|
|
|
|
[ perl xulrunner libpulseaudio glib gtk pixman nspr
|
|
|
|
nss libXScrnSaver scrnsaverproto
|
|
|
|
] ++ [ perlPackages.SubName gtk glib ];
|
2011-06-28 11:45:09 +02:00
|
|
|
|
2016-08-29 00:58:53 +02:00
|
|
|
postPatch = ''
|
2011-06-28 11:45:09 +02:00
|
|
|
sed -e '1i#include <netinet/in.h>' -i src/rtp/otRTPDecoder.cpp src/rtp/otRTPEncoder.cpp
|
|
|
|
'';
|
|
|
|
|
2016-08-29 00:58:53 +02:00
|
|
|
cmakeBuildDir = "cmake-build";
|
|
|
|
cmakeFlags = ["-D XPCOM_GECKO_SDK=${xulrunner}/lib/xulrunner-devel-${xulrunner.version}"];
|
2011-06-28 11:45:09 +02:00
|
|
|
|
2016-08-29 00:58:53 +02:00
|
|
|
buildPhase = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${nspr.dev}/include/nspr"
|
|
|
|
cd src/components
|
2011-06-28 11:45:09 +02:00
|
|
|
perl build.pl XULAPP 1
|
2016-08-29 00:58:53 +02:00
|
|
|
cd ../../
|
|
|
|
'';
|
2011-06-28 11:45:09 +02:00
|
|
|
|
2016-08-29 00:58:53 +02:00
|
|
|
installPhase = ''
|
2011-06-28 11:45:09 +02:00
|
|
|
TARGET_DIR="$out/share/oneteam/app"
|
|
|
|
BUILD_DIR="$PWD"
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$TARGET_DIR"
|
2011-06-28 11:45:09 +02:00
|
|
|
cd "$TARGET_DIR"
|
|
|
|
unzip "$BUILD_DIR/oneteam.xulapp"
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/bin"
|
2016-08-29 00:58:53 +02:00
|
|
|
echo "#! ${stdenv.shell}" > "$out/bin/oneteam"
|
2011-06-28 11:45:09 +02:00
|
|
|
echo "\"${xulrunner}/bin/xulrunner\" \"$TARGET_DIR/application.ini\"" > "$out/bin/oneteam"
|
|
|
|
chmod a+x "$out/bin/oneteam"
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/share/doc"
|
2011-06-28 11:45:09 +02:00
|
|
|
cp -r "$BUILD_DIR/docs" "$out/share/doc/oneteam"
|
2016-08-29 00:58:53 +02:00
|
|
|
'';
|
2011-06-28 11:45:09 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An XMPP client";
|
2016-08-29 00:58:53 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin ];
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2011-06-28 11:45:09 +02:00
|
|
|
homepage="http://oneteam.im";
|
|
|
|
};
|
2016-08-29 00:58:53 +02:00
|
|
|
|
2011-06-28 11:45:09 +02:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
2016-08-29 00:58:53 +02:00
|
|
|
downloadPage = "git://github.com/processone/oneteam";
|
2011-06-28 11:45:09 +02:00
|
|
|
};
|
|
|
|
};
|
2016-08-29 00:58:53 +02:00
|
|
|
}
|