mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
weechat-xmpp: init at 2017-08-30
This commit is contained in:
parent
64e5583c7a
commit
4ce42a40c1
@ -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;
|
||||
};
|
||||
}
|
@ -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:
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user