roundcubePlugins: init

This meta-package is supposed to contain third-party roundcube plugins
such as `persistent_login` that will be linked into the roundcube
derivation.
This commit is contained in:
Maximilian Bosch 2019-01-29 11:59:52 +01:00 committed by Robin Gloster
parent b584a786ec
commit 2820e1df5c
5 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{ newScope, pkgs }:
let
callPackage = newScope (pkgs // plugins);
plugins = import ./plugins.nix { inherit callPackage; };
in
plugins

View file

@ -0,0 +1,13 @@
{ roundcubePlugin, fetchFromGitHub }:
roundcubePlugin rec {
pname = "persistent_login";
version = "5.1.0";
src = fetchFromGitHub {
owner = "mfreiholz";
repo = pname;
rev = "version-${version}";
sha256 = "1k2jgbshwig8q5l440y59pgwbfbc0pdrjbpihba834a4pm0y6anl";
};
}

View file

@ -0,0 +1,9 @@
{ callPackage }:
{
inherit callPackage;
roundcubePlugin = callPackage ./roundcube-plugin.nix { };
persistent_login = callPackage ./persistent_login { };
}

View file

@ -0,0 +1,7 @@
{ runCommand }:
{ pname, version, src }:
runCommand "roundcube-plugin-${pname}-${version}" { } ''
mkdir -p $out/plugins/
cp -r ${src} $out/plugins/${pname}
''

View file

@ -1619,6 +1619,8 @@ in
roundcube = callPackage ../servers/roundcube { };
roundcubePlugins = callPackage ../servers/roundcube/plugins { };
rsbep = callPackage ../tools/backup/rsbep { };
rsyslog = callPackage ../tools/system/rsyslog {