weechat-xmpp: init at 2017-08-30

This commit is contained in:
Maximilian Bosch 2017-10-12 22:47:02 +02:00
parent 64e5583c7a
commit 4ce42a40c1
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
3 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, xmpppy }:
stdenv.mkDerivation {
name = "weechat-jabber-2017-08-30";
src = fetchFromGitHub {
repo = "weechat-xmpp";
owner = "sleduc";
sha256 = "0s02xs0ynld9cxxzj07al364sfglyc5ir1i82133mq0s8cpphnxv";
rev = "8f6c21f5a160c9318c7a2d8fd5dcac7ab2e0d843";
};
installPhase = ''
mkdir -p $out/share
cp jabber.py $out/share/jabber.py
'';
buildInputs = [ xmpppy ];
postPatch = ''
substituteInPlace jabber.py \
--replace "__NIX_OUTPUT__" "${xmpppy}/lib/python2.7/site-packages"
'';
patches = [
./libpath.patch
];
meta = with stdenv.lib; {
description = "A fork of the jabber plugin for weechat";
homepage = "https://github.com/sleduc/weechat-xmpp";
maintainers = with maintainers; [ ma27 ];
license = licenses.gpl3Plus;
};
}

View File

@ -0,0 +1,16 @@
diff --git a/jabber.py b/jabber.py
index 27006a3..e53c2c0 100644
--- a/jabber.py
+++ b/jabber.py
@@ -95,6 +95,11 @@ SCRIPT_COMMAND = SCRIPT_NAME
import re
import warnings
+import sys
+
+sys.path.append('__NIX_OUTPUT__')
+
+
import_ok = True
try:

View File

@ -17017,6 +17017,8 @@ with pkgs;
inherit (luaPackages) cjson;
};
weechat-xmpp = callPackage ../applications/networking/instant-messengers/weechat-xmpp {};
westonLite = callPackage ../applications/window-managers/weston {
pango = null;
freerdp = null;