Merge pull request #12344 from hrdinka/update/znc

Update and add new ZNC modules

+67 -61
-35
pkgs/applications/networking/znc/1.4.nix
··· 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 - }
···
+67 -24
pkgs/applications/networking/znc/modules.nix
··· 1 - { stdenv, fetchurl, fetchgit, znc }: 2 3 let 4 - 5 zncDerivation = a@{ 6 name, src, module_name, 7 buildPhase ? "${znc}/bin/znc-buildmod ${module_name}.cpp", ··· 16 17 in rec { 18 19 - push = zncDerivation rec { 20 - name = "znc-push-${version}"; 21 - version = "1.0.0"; 22 - module_name = "push"; 23 24 - src = fetchurl { 25 - url = "https://github.com/jreese/znc-push/archive/v${version}.tar.gz"; 26 - sha256 = "1v9a16b1d8mfzhddf4drh6rbxa0szr842g7614r8ninmc0gi7a2v"; 27 }; 28 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 ]; 35 }; 36 }; 37 38 fish = zncDerivation rec { 39 - name = "znc-fish-8e1f150fda"; 40 module_name = "fish"; 41 42 src = fetchgit { 43 - url = meta.repositories.git; 44 - rev = "8e1f150fdaf18dc33e023795584dec8255e6614e"; 45 - sha256 = "0vpk4336c191irl3g7wibblnbqf3903hjrci4gs0qgg1wvj7fw66"; 46 }; 47 48 meta = { 49 description = "ZNC FiSH module"; 50 homepage = https://github.com/dctrwatson/znc-fish; 51 - repositories.git = https://github.com/dctrwatson/znc-fish.git; 52 maintainers = [ stdenv.lib.maintainers.offline ]; 53 }; 54 }; 55 56 privmsg = zncDerivation rec { 57 - name = "znc-privmsg-c9f98690be"; 58 module_name = "privmsg"; 59 60 src = fetchgit { 61 - url = meta.repositories.git; 62 - rev = "c9f98690beb4e3a7681468d5421ff11dc8e1ee8b"; 63 - sha256 = "dfeb28878b12b98141ab204191288cb4c3f7df153a01391ebf6ed6a32007247f"; 64 }; 65 66 meta = { 67 description = "ZNC privmsg module"; 68 homepage = https://github.com/kylef/znc-contrib; 69 repositories.git = https://github.com/kylef/znc-contrib.git; 70 }; 71 }; 72
··· 1 + { stdenv, fetchurl, fetchgit, znc }: 2 3 let 4 zncDerivation = a@{ 5 name, src, module_name, 6 buildPhase ? "${znc}/bin/znc-buildmod ${module_name}.cpp", ··· 15 16 in rec { 17 18 + clientbuffer = zncDerivation rec { 19 + name = "znc-clientbuffer-${version}"; 20 + version = "git-2015-08-27"; 21 + module_name = "clientbuffer"; 22 23 + src = fetchgit { 24 + url = meta.repositories.git; 25 + rev = "fe0f368e1fcab2b89d5c94209822d9b616cea840"; 26 + sha256 = "1knbkj1dm45s741qndsfclmk3pyxnihgwq2i1n75ip3wv8i1bf4b"; 27 }; 28 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 ]; 35 }; 36 }; 37 38 fish = zncDerivation rec { 39 + name = "znc-fish-${version}"; 40 + version = "git-2014-10-10"; 41 module_name = "fish"; 42 43 src = fetchgit { 44 + url = meta.repositories.git; 45 + rev = "9c580e018a1a08374e814fc06f551281cff827de"; 46 + sha256 = "0yvs0jkwwp18qxqvw1dvir91ggczz56ka00k0zlsb81csdi8xfvl"; 47 }; 48 49 meta = { 50 description = "ZNC FiSH module"; 51 homepage = https://github.com/dctrwatson/znc-fish; 52 + # this fork works with ZNC 1.6 53 + repositories.git = https://github.com/jarrydpage/znc-fish.git; 54 maintainers = [ stdenv.lib.maintainers.offline ]; 55 }; 56 }; 57 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 + 78 privmsg = zncDerivation rec { 79 + name = "znc-privmsg-${version}"; 80 + version = "git-2015-02-22"; 81 module_name = "privmsg"; 82 83 src = fetchgit { 84 + url = meta.repositories.git; 85 + rev = "9f1f98db56cbbea96d83e6628f657e0d62cd9517"; 86 + sha256 = "0n82z87gdxxragcaixjc80z8bw4bmfwbk0jrf9zs8kk42phlkkc2"; 87 }; 88 89 meta = { 90 description = "ZNC privmsg module"; 91 homepage = https://github.com/kylef/znc-contrib; 92 repositories.git = https://github.com/kylef/znc-contrib.git; 93 + }; 94 + }; 95 + 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
-2
pkgs/top-level/all-packages.nix
··· 16125 16126 znc = callPackage ../applications/networking/znc { }; 16127 16128 - znc_14 = callPackage ../applications/networking/znc/1.4.nix { }; 16129 - 16130 zncModules = recurseIntoAttrs ( 16131 callPackage ../applications/networking/znc/modules.nix { } 16132 );
··· 16125 16126 znc = callPackage ../applications/networking/znc { }; 16127 16128 zncModules = recurseIntoAttrs ( 16129 callPackage ../applications/networking/znc/modules.nix { } 16130 );