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:
parent
b584a786ec
commit
2820e1df5c
11
pkgs/servers/roundcube/plugins/default.nix
Normal file
11
pkgs/servers/roundcube/plugins/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ newScope, pkgs }:
|
||||
|
||||
let
|
||||
|
||||
callPackage = newScope (pkgs // plugins);
|
||||
|
||||
plugins = import ./plugins.nix { inherit callPackage; };
|
||||
|
||||
in
|
||||
|
||||
plugins
|
13
pkgs/servers/roundcube/plugins/persistent_login/default.nix
Normal file
13
pkgs/servers/roundcube/plugins/persistent_login/default.nix
Normal 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";
|
||||
};
|
||||
}
|
9
pkgs/servers/roundcube/plugins/plugins.nix
Normal file
9
pkgs/servers/roundcube/plugins/plugins.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ callPackage }:
|
||||
|
||||
{
|
||||
inherit callPackage;
|
||||
|
||||
roundcubePlugin = callPackage ./roundcube-plugin.nix { };
|
||||
|
||||
persistent_login = callPackage ./persistent_login { };
|
||||
}
|
7
pkgs/servers/roundcube/plugins/roundcube-plugin.nix
Normal file
7
pkgs/servers/roundcube/plugins/roundcube-plugin.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ runCommand }:
|
||||
{ pname, version, src }:
|
||||
|
||||
runCommand "roundcube-plugin-${pname}-${version}" { } ''
|
||||
mkdir -p $out/plugins/
|
||||
cp -r ${src} $out/plugins/${pname}
|
||||
''
|
|
@ -1619,6 +1619,8 @@ in
|
|||
|
||||
roundcube = callPackage ../servers/roundcube { };
|
||||
|
||||
roundcubePlugins = callPackage ../servers/roundcube/plugins { };
|
||||
|
||||
rsbep = callPackage ../tools/backup/rsbep { };
|
||||
|
||||
rsyslog = callPackage ../tools/system/rsyslog {
|
||||
|
|
Loading…
Reference in a new issue