2016-01-12 22:11:10 +00:00
|
|
|
{ stdenv, fetchurl, fetchgit, znc }:
|
2013-10-30 08:54:40 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2013-11-12 12:43:29 +00:00
|
|
|
meta = a.meta // { platforms = stdenv.lib.platforms.unix; };
|
2013-10-30 08:54:40 +00:00
|
|
|
passthru.module_name = module_name;
|
|
|
|
});
|
|
|
|
|
|
|
|
in rec {
|
|
|
|
|
|
|
|
fish = zncDerivation rec {
|
2016-01-12 22:12:34 +00:00
|
|
|
name = "znc-fish-${version}";
|
|
|
|
version = "git-2014-10-10";
|
2013-10-30 08:54:40 +00:00
|
|
|
module_name = "fish";
|
|
|
|
|
|
|
|
src = fetchgit {
|
2016-01-12 22:12:34 +00:00
|
|
|
url = meta.repositories.git;
|
|
|
|
rev = "9c580e018a1a08374e814fc06f551281cff827de";
|
|
|
|
sha256 = "0yvs0jkwwp18qxqvw1dvir91ggczz56ka00k0zlsb81csdi8xfvl";
|
2013-10-30 08:54:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2013-10-30 08:54:40 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.offline ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-16 18:00:49 +00:00
|
|
|
privmsg = zncDerivation rec {
|
|
|
|
name = "znc-privmsg-c9f98690be";
|
|
|
|
module_name = "privmsg";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = meta.repositories.git;
|
|
|
|
rev = "c9f98690beb4e3a7681468d5421ff11dc8e1ee8b";
|
|
|
|
sha256 = "dfeb28878b12b98141ab204191288cb4c3f7df153a01391ebf6ed6a32007247f";
|
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-10-30 08:54:40 +00:00
|
|
|
}
|