Skip to content

Commit

Permalink
oneteam: fix fixable problems, mark broken as it fell behind Firefox …
Browse files Browse the repository at this point in the history
…too much
  • Loading branch information
7c6f434c committed Mar 22, 2017
1 parent ce6cd33 commit ede7097
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub
, perl, xulrunner, cmake, perlPackages, zip, unzip, pkgconfig
, perl, firefox, perlPackages, zip, unzip, pkgconfig
, libpulseaudio, glib, gtk2, pixman, nspr, nss, libXScrnSaver
, scrnsaverproto
}:
Expand All @@ -14,25 +14,20 @@ stdenv.mkDerivation rec {
sha256 = "19104fwdaf0nnsr5w755fg8wwww5sh96wmn939gxa5ah155nf2w3";
};

nativeBuildInputs = [ pkgconfig cmake zip unzip ];
nativeBuildInputs = [ pkgconfig zip unzip ];

buildInputs =
[ perl xulrunner libpulseaudio glib gtk2 pixman nspr
[ perl firefox libpulseaudio glib gtk2 pixman nspr
nss libXScrnSaver scrnsaverproto
] ++ [ perlPackages.SubName gtk2 glib ];

postPatch = ''
sed -e '1i#include <netinet/in.h>' -i src/rtp/otRTPDecoder.cpp src/rtp/otRTPEncoder.cpp
sed -e '1i#include <netinet/in.h>' -i src/components/src/rtp/otRTPDecoder.cpp src/components/src/rtp/otRTPEncoder.cpp
'';

cmakeBuildDir = "cmake-build";
cmakeFlags = ["-D XPCOM_GECKO_SDK=${xulrunner}/lib/xulrunner-devel-${xulrunner.version}"];

buildPhase = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${nspr.dev}/include/nspr"
cd src/components
perl build.pl XULAPP 1
cd ../../
'';

installPhase = ''
Expand All @@ -43,7 +38,8 @@ stdenv.mkDerivation rec {
unzip "$BUILD_DIR/oneteam.xulapp"
mkdir -p "$out/bin"
echo "#! ${stdenv.shell}" > "$out/bin/oneteam"
echo "\"${xulrunner}/bin/xulrunner\" \"$TARGET_DIR/application.ini\"" > "$out/bin/oneteam"
sed -re 's@MaxVersion=[0-9.]+@MaxVersion=999.0@' -i "$TARGET_DIR/application.ini"
echo "\"${firefox}/bin/firefox\" -app \"$TARGET_DIR/application.ini\"" > "$out/bin/oneteam"
chmod a+x "$out/bin/oneteam"
mkdir -p "$out/share/doc"
cp -r "$BUILD_DIR/docs" "$out/share/doc/oneteam"
Expand All @@ -54,6 +50,8 @@ stdenv.mkDerivation rec {
maintainers = with stdenv.lib.maintainers; [ raskin ];
license = stdenv.lib.licenses.gpl2;
homepage="http://oneteam.im";
# Fell behind the Firefox development
broken = true;
};

passthru = {
Expand Down

0 comments on commit ede7097

Please sign in to comment.