git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #12344 from hrdinka/update/znc

Update and add new ZNC modules

commitc84f56e3d35ad014882355de15a9ec0d3da4005a authorArseniy Seroka <jagajaga@users.noreply.github.com> dateWed 24 Feb 2016, 18:57 (11 years ago) parent181d4cbc737ee5
3 files changed+67−61
pkgs/applications/networking/znc/1.4.nix−35 pkgs/applications/networking/znc/modules.nix+67−24 pkgs/top-level/all-packages.nix−2
pkgs/applications/networking/znc/1.4.nixdeleted−35
@@ -1,35 +0,0 @@
1−{ stdenv, fetchurl, openssl, pkgconfig
2−, withPerl ? false, perl
3−, withPython ? false, python3
4−, withTcl ? false, tcl
5−, withCyrus ? true, cyrus_sasl
6−}:
7−
8−with stdenv.lib;
9−stdenv.mkDerivation rec {
10− name = "znc-1.4";
11−
12− src = fetchurl {
13− url = "http://znc.in/releases/${name}.tar.gz";
14− sha256 = "0lkv58pq4d5lzcyx8v8anzinx0sx0zw0js4jij13jb8qxp88zsc6";
15− };
16−
17− buildInputs = [ openssl pkgconfig ]
18− ++ optional withPerl perl
19− ++ optional withPython python3
20− ++ optional withTcl tcl
21− ++ optional withCyrus cyrus_sasl;
22−
23− configureFlags = optionalString withPerl "--enable-perl "
24− + optionalString withPython "--enable-python "
25− + optionalString withTcl "--enable-tcl --with-tcl=${tcl}/lib "
26− + optionalString withCyrus "--enable-cyrus ";
27−
28− meta = with stdenv.lib; {
29− description = "Advanced IRC bouncer";
30− homepage = http://wiki.znc.in/ZNC;
31− maintainers = with maintainers; [ viric ];
32− license = licenses.asl20;
33− platforms = platforms.unix;
34− };
35−}
pkgs/applications/networking/znc/modules.nix+67−24
@@ -1,7 +1,6 @@
1−{ stdenv, fetchurl, fetchgit, znc }:
1+{ stdenv, fetchurl, fetchgit, znc }:
22
33let
4−
54 zncDerivation = a@{
65 name, src, module_name,
76 buildPhase ? "${znc}/bin/znc-buildmod ${module_name}.cpp",
@@ -16,51 +15,75 @@ let
1615
1716in rec {
1817
19− push = zncDerivation rec {
20− name = "znc-push-${version}";
21− version = "1.0.0";
22− module_name = "push";
18+ clientbuffer = zncDerivation rec {
19+ name = "znc-clientbuffer-${version}";
20+ version = "git-2015-08-27";
21+ module_name = "clientbuffer";
2322
24− src = fetchurl {
25− url = "https://github.com/jreese/znc-push/archive/v${version}.tar.gz";
26− sha256 = "1v9a16b1d8mfzhddf4drh6rbxa0szr842g7614r8ninmc0gi7a2v";
23+ src = fetchgit {
24+ url = meta.repositories.git;
25+ rev = "fe0f368e1fcab2b89d5c94209822d9b616cea840";
26+ sha256 = "1knbkj1dm45s741qndsfclmk3pyxnihgwq2i1n75ip3wv8i1bf4b";
2727 };
2828
29− meta = {
30− description = "Push notification service module for ZNC";
31− homepage = https://github.com/jreese/znc-push;
32− repositories.git = https://github.com/jreese/znc-push.git;
33− license = stdenv.lib.licenses.mit;
34− maintainers = [ stdenv.lib.maintainers.offline ];
29+ meta = with stdenv.lib; {
30+ description = "ZNC module for client specific buffers";
31+ homepage = https://github.com/jpnurmi/znc-clientbuffer;
32+ repositories.git = https://github.com/jpnurmi/znc-clientbuffer.git;
33+ license = licenses.asl20;
34+ maintainers = with maintainers; [ hrdinka ];
3535 };
3636 };
3737
3838 fish = zncDerivation rec {
39− name = "znc-fish-8e1f150fda";
39+ name = "znc-fish-${version}";
40+ version = "git-2014-10-10";
4041 module_name = "fish";
4142
4243 src = fetchgit {
43− url = meta.repositories.git;
44− rev = "8e1f150fdaf18dc33e023795584dec8255e6614e";
45− sha256 = "0vpk4336c191irl3g7wibblnbqf3903hjrci4gs0qgg1wvj7fw66";
44+ url = meta.repositories.git;
45+ rev = "9c580e018a1a08374e814fc06f551281cff827de";
46+ sha256 = "0yvs0jkwwp18qxqvw1dvir91ggczz56ka00k0zlsb81csdi8xfvl";
4647 };
4748
4849 meta = {
4950 description = "ZNC FiSH module";
5051 homepage = https://github.com/dctrwatson/znc-fish;
51− repositories.git = https://github.com/dctrwatson/znc-fish.git;
52+ # this fork works with ZNC 1.6
53+ repositories.git = https://github.com/jarrydpage/znc-fish.git;
5254 maintainers = [ stdenv.lib.maintainers.offline ];
5355 };
5456 };
5557
58+ playback = zncDerivation rec {
59+ name = "znc-playback-${version}";
60+ version = "git-2015-08-04";
61+ module_name = "playback";
62+
63+ src = fetchgit {
64+ url = meta.repositories.git;
65+ rev = "8691abf75becc1f3d7b5bb5ad68dad17cd21863b";
66+ sha256 = "0pd89p00yfir4lvw0107lc3qxzx8bgbm5lqq0lpwb6cahv3ipdra";
67+ };
68+
69+ meta = with stdenv.lib; {
70+ description = "An advanced playback module for ZNC";
71+ homepage = https://github.com/jpnurmi/znc-playback;
72+ repositories.git = https://github.com/jpnurmi/znc-playback.git;
73+ license = licenses.asl20;
74+ maintainers = with maintainers; [ hrdinka ];
75+ };
76+ };
77+
5678 privmsg = zncDerivation rec {
57− name = "znc-privmsg-c9f98690be";
79+ name = "znc-privmsg-${version}";
80+ version = "git-2015-02-22";
5881 module_name = "privmsg";
5982
6083 src = fetchgit {
61− url = meta.repositories.git;
62− rev = "c9f98690beb4e3a7681468d5421ff11dc8e1ee8b";
63− sha256 = "dfeb28878b12b98141ab204191288cb4c3f7df153a01391ebf6ed6a32007247f";
84+ url = meta.repositories.git;
85+ rev = "9f1f98db56cbbea96d83e6628f657e0d62cd9517";
86+ sha256 = "0n82z87gdxxragcaixjc80z8bw4bmfwbk0jrf9zs8kk42phlkkc2";
6487 };
6588
6689 meta = {
@@ -70,4 +93,24 @@ in rec {
7093 };
7194 };
7295
96+ push = zncDerivation rec {
97+ name = "znc-push-${version}";
98+ version = "git-2015-12-07";
99+ module_name = "push";
100+
101+ src = fetchgit {
102+ url = "https://github.com/jreese/znc-push.git";
103+ rev = "717a2b1741eee75456b0862ef76dbb5af906e936";
104+ sha256 = "1lr5bhcy8156f7sbah7kjgz4g4mhkkwgvwjd2rxpbwnpq3ssza9k";
105+ };
106+
107+ meta = {
108+ description = "Push notification service module for ZNC";
109+ homepage = https://github.com/jreese/znc-push;
110+ repositories.git = https://github.com/jreese/znc-push.git;
111+ license = stdenv.lib.licenses.mit;
112+ maintainers = [ stdenv.lib.maintainers.offline ];
113+ };
114+ };
115+
73116}
pkgs/top-level/all-packages.nix−2
@@ -16125,8 +16125,6 @@ let
1612516125
1612616126 znc = callPackage ../applications/networking/znc { };
1612716127
16128− znc_14 = callPackage ../applications/networking/znc/1.4.nix { };
16129−
1613016128 zncModules = recurseIntoAttrs (
1613116129 callPackage ../applications/networking/znc/modules.nix { }
1613216130 );