3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/znc/modules.nix

117 lines
3.4 KiB
Nix
Raw Normal View History

2016-01-12 22:11:10 +00:00
{ stdenv, fetchurl, fetchgit, znc }:
let
zncDerivation = a@{
name, src, module_name,
buildPhase ? "${znc}/bin/znc-buildmod ${module_name}.cpp",
installPhase ? "install -D ${module_name}.so $out/lib/znc/${module_name}.so", ...
} : stdenv.mkDerivation (a // {
inherit buildPhase;
inherit installPhase;
meta = a.meta // { platforms = stdenv.lib.platforms.unix; };
passthru.module_name = module_name;
});
in rec {
clientbuffer = zncDerivation rec {
name = "znc-clientbuffer-${version}";
version = "git-2015-08-27";
module_name = "clientbuffer";
src = fetchgit {
url = meta.repositories.git;
rev = "fe0f368e1fcab2b89d5c94209822d9b616cea840";
sha256 = "1knbkj1dm45s741qndsfclmk3pyxnihgwq2i1n75ip3wv8i1bf4b";
};
meta = with stdenv.lib; {
description = "ZNC module for client specific buffers";
homepage = https://github.com/jpnurmi/znc-clientbuffer;
repositories.git = https://github.com/jpnurmi/znc-clientbuffer.git;
license = licenses.asl20;
maintainers = with maintainers; [ hrdinka ];
};
};
fish = zncDerivation rec {
2016-01-12 22:12:34 +00:00
name = "znc-fish-${version}";
version = "git-2014-10-10";
module_name = "fish";
src = fetchgit {
2016-01-12 22:12:34 +00:00
url = meta.repositories.git;
rev = "9c580e018a1a08374e814fc06f551281cff827de";
sha256 = "0yvs0jkwwp18qxqvw1dvir91ggczz56ka00k0zlsb81csdi8xfvl";
};
meta = {
description = "ZNC FiSH module";
homepage = https://github.com/dctrwatson/znc-fish;
2016-01-12 22:12:34 +00:00
# this fork works with ZNC 1.6
repositories.git = https://github.com/jarrydpage/znc-fish.git;
maintainers = [ stdenv.lib.maintainers.offline ];
};
};
2016-01-12 22:14:56 +00:00
playback = zncDerivation rec {
name = "znc-playback-${version}";
version = "git-2015-08-04";
module_name = "playback";
src = fetchgit {
url = meta.repositories.git;
rev = "8691abf75becc1f3d7b5bb5ad68dad17cd21863b";
sha256 = "0pd89p00yfir4lvw0107lc3qxzx8bgbm5lqq0lpwb6cahv3ipdra";
};
meta = with stdenv.lib; {
description = "An advanced playback module for ZNC";
homepage = https://github.com/jpnurmi/znc-playback;
repositories.git = https://github.com/jpnurmi/znc-playback.git;
license = licenses.asl20;
maintainers = with maintainers; [ hrdinka ];
};
};
2015-01-16 18:00:49 +00:00
privmsg = zncDerivation rec {
name = "znc-privmsg-${version}";
version = "git-2015-02-22";
2015-01-16 18:00:49 +00:00
module_name = "privmsg";
src = fetchgit {
url = meta.repositories.git;
rev = "9f1f98db56cbbea96d83e6628f657e0d62cd9517";
sha256 = "0n82z87gdxxragcaixjc80z8bw4bmfwbk0jrf9zs8kk42phlkkc2";
2015-01-16 18:00:49 +00:00
};
meta = {
description = "ZNC privmsg module";
homepage = https://github.com/kylef/znc-contrib;
repositories.git = https://github.com/kylef/znc-contrib.git;
};
};
2016-01-12 22:11:10 +00:00
push = zncDerivation rec {
name = "znc-push-${version}";
version = "git-2015-12-07";
module_name = "push";
src = fetchgit {
url = "https://github.com/jreese/znc-push.git";
rev = "717a2b1741eee75456b0862ef76dbb5af906e936";
sha256 = "1lr5bhcy8156f7sbah7kjgz4g4mhkkwgvwjd2rxpbwnpq3ssza9k";
};
meta = {
description = "Push notification service module for ZNC";
homepage = https://github.com/jreese/znc-push;
repositories.git = https://github.com/jreese/znc-push.git;
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.offline ];
};
};
}