aboutsummaryrefslogtreecommitdiff
path: root/pkgs/servers/roundcube
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2019-01-29 12:41:51 +0100
committerRobin Gloster <mail@glob.in>2019-02-08 13:35:09 +0000
commitdf0d11575c6beaa8f0562e5d0051f8b5e2eb7b14 (patch)
tree9a50b5c73f90470974116358f810c920b73f60d7 /pkgs/servers/roundcube
parent2820e1df5ca3bd3a60a61aeee68adae1b9274afe (diff)
roundcube: add `withPlugins` function
This function creates a new store path with roundcube sources and all specified plugins. It can be used like this: ``` roundcube.withPlugins (plugins: with plugins; [ persistent_login ]) ```
Diffstat (limited to 'pkgs/servers/roundcube')
-rw-r--r--pkgs/servers/roundcube/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/servers/roundcube/default.nix b/pkgs/servers/roundcube/default.nix
index c0648f5183d9..cda5ae1d6c55 100644
--- a/pkgs/servers/roundcube/default.nix
+++ b/pkgs/servers/roundcube/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchzip }:
+{ lib, stdenv, fetchzip, buildEnv, roundcube, roundcubePlugins }:
let
version = "1.3.8";
in
@@ -13,6 +13,11 @@ fetchzip rec {
rm -rf $out/installer
'';
+ passthru.withPlugins = f: buildEnv {
+ name = "${roundcube.name}-with-plugins";
+ paths = (f roundcubePlugins) ++ [ roundcube ];
+ };
+
meta = {
description = "Open Source Webmail Software";
maintainers = with stdenv.lib.maintainers; [ vskilet ];
@@ -20,4 +25,3 @@ fetchzip rec {
platforms = stdenv.lib.platforms.all;
};
}
-