mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Added jitsi
This commit is contained in:
parent
6a95e90f27
commit
26d42a894a
@ -0,0 +1,45 @@
|
||||
{ stdenv, fetchurl, makeDesktopItem, unzip, ant, jdk }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "jitsi-${version}";
|
||||
version = "2.4.4997";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.jitsi.org/jitsi/src/jitsi-src-${version}.zip";
|
||||
sha256 = "f1c2688d7d6bf1916fed3b8b105a785662980c5b297dcab3c9e7d272647ef825";
|
||||
};
|
||||
|
||||
patches = [ ./jitsi.patch ];
|
||||
|
||||
jitsiItem = makeDesktopItem {
|
||||
name = "Jitsi";
|
||||
exec = "jitsi";
|
||||
comment = "VoIP and Instant Messaging client";
|
||||
desktopName = "Jitsi";
|
||||
genericName = "Instant Messaging";
|
||||
categories = "Application;Internet;";
|
||||
};
|
||||
|
||||
buildInputs = [unzip ant jdk];
|
||||
|
||||
buildPhase = ''ant make'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -a lib $out/
|
||||
cp -a sc-bundles $out/
|
||||
mkdir $out/bin
|
||||
cp resources/install/generic/run.sh $out/bin/jitsi
|
||||
chmod +x $out/bin/jitsi
|
||||
patchShebangs $out
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://jitsi.org/;
|
||||
description = "Open Source Video Calls and Chat";
|
||||
license = stdenv.lib.licenses.lgpl21Plus.shortName;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
--- /home/dario/Downloads/jitsi/resources/install/generic/run.sh 2013-11-01 15:37:21.000000000 +0000
|
||||
+++ jitsi/resources/install/generic/run.sh 2014-03-04 11:52:30.796397567 +0000
|
||||
@@ -1,4 +1,9 @@
|
||||
-mkdir -p $HOME/.sip-communicator/log
|
||||
+#! /bin/bash
|
||||
+# A modified version of the generic run.sh
|
||||
+
|
||||
+#mkdir -p $HOME/.sip-communicator/log
|
||||
+
|
||||
+cd "$( dirname "$( dirname "${BASH_SOURCE[0]}" )" )"
|
||||
|
||||
# Get architecture
|
||||
ARCH=`uname -m | sed -e s/x86_64/64/ -e s/i.86/32/`
|
||||
@@ -6,10 +11,12 @@
|
||||
# Additionnal JVM arguments
|
||||
CLIENTARGS=""
|
||||
|
||||
+NATIVELIBS="lib/native/linux-64"
|
||||
if [ $ARCH -eq 32 ]
|
||||
then
|
||||
CLIENTARGS="-client -Xmx256m"
|
||||
+ NATIVELIBS="lib/native/linux"
|
||||
fi
|
||||
|
||||
export PATH=$PATH:native
|
||||
-java $CLIENTARGS -classpath "lib/felix.jar:sc-bundles/sc-launcher.jar:sc-bundles/util.jar:lib/" -Djava.library.path=native -Dfelix.config.properties=file:./lib/felix.client.run.properties -Djava.util.logging.config.file=lib/logging.properties net.java.sip.communicator.launcher.SIPCommunicator
|
||||
+exec java $CLIENTARGS -classpath "lib/felix.jar:sc-bundles/sc-launcher.jar:sc-bundles/util.jar:lib/" -Djava.library.path=$NATIVELIBS -Dfelix.config.properties=file:lib/felix.client.run.properties -Djava.util.logging.config.file=lib/logging.properties net.java.sip.communicator.launcher.SIPCommunicator
|
@ -8150,7 +8150,7 @@ let
|
||||
inherit (xorg) libxkbfile;
|
||||
cairo = cairo.override { xcbSupport = true; };
|
||||
};
|
||||
|
||||
|
||||
i3minator = callPackage ../tools/misc/i3minator { };
|
||||
|
||||
i3status = callPackage ../applications/window-managers/i3/status.nix { };
|
||||
@ -8247,6 +8247,8 @@ let
|
||||
|
||||
jigdo = callPackage ../applications/misc/jigdo { };
|
||||
|
||||
jitsi = callPackage ../applications/networking/instant-messengers/jitsi { };
|
||||
|
||||
joe = callPackage ../applications/editors/joe { };
|
||||
|
||||
jbrout = callPackage ../applications/graphics/jbrout {
|
||||
|
Loading…
Reference in New Issue
Block a user