oneteam: fix fixable problems, mark broken as it fell behind Firefox too much
This commit is contained in:
parent
ce6cd33c65
commit
ede70972a4
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub
|
{ stdenv, fetchFromGitHub
|
||||||
, perl, xulrunner, cmake, perlPackages, zip, unzip, pkgconfig
|
, perl, firefox, perlPackages, zip, unzip, pkgconfig
|
||||||
, libpulseaudio, glib, gtk2, pixman, nspr, nss, libXScrnSaver
|
, libpulseaudio, glib, gtk2, pixman, nspr, nss, libXScrnSaver
|
||||||
, scrnsaverproto
|
, scrnsaverproto
|
||||||
}:
|
}:
|
||||||
@ -14,25 +14,20 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "19104fwdaf0nnsr5w755fg8wwww5sh96wmn939gxa5ah155nf2w3";
|
sha256 = "19104fwdaf0nnsr5w755fg8wwww5sh96wmn939gxa5ah155nf2w3";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig cmake zip unzip ];
|
nativeBuildInputs = [ pkgconfig zip unzip ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ perl xulrunner libpulseaudio glib gtk2 pixman nspr
|
[ perl firefox libpulseaudio glib gtk2 pixman nspr
|
||||||
nss libXScrnSaver scrnsaverproto
|
nss libXScrnSaver scrnsaverproto
|
||||||
] ++ [ perlPackages.SubName gtk2 glib ];
|
] ++ [ perlPackages.SubName gtk2 glib ];
|
||||||
|
|
||||||
postPatch = ''
|
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 = ''
|
buildPhase = ''
|
||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${nspr.dev}/include/nspr"
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${nspr.dev}/include/nspr"
|
||||||
cd src/components
|
|
||||||
perl build.pl XULAPP 1
|
perl build.pl XULAPP 1
|
||||||
cd ../../
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -43,7 +38,8 @@ stdenv.mkDerivation rec {
|
|||||||
unzip "$BUILD_DIR/oneteam.xulapp"
|
unzip "$BUILD_DIR/oneteam.xulapp"
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
echo "#! ${stdenv.shell}" > "$out/bin/oneteam"
|
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"
|
chmod a+x "$out/bin/oneteam"
|
||||||
mkdir -p "$out/share/doc"
|
mkdir -p "$out/share/doc"
|
||||||
cp -r "$BUILD_DIR/docs" "$out/share/doc/oneteam"
|
cp -r "$BUILD_DIR/docs" "$out/share/doc/oneteam"
|
||||||
@ -54,6 +50,8 @@ stdenv.mkDerivation rec {
|
|||||||
maintainers = with stdenv.lib.maintainers; [ raskin ];
|
maintainers = with stdenv.lib.maintainers; [ raskin ];
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = stdenv.lib.licenses.gpl2;
|
||||||
homepage="http://oneteam.im";
|
homepage="http://oneteam.im";
|
||||||
|
# Fell behind the Firefox development
|
||||||
|
broken = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user