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
])
```
This commit is contained in:
Maximilian Bosch 2019-01-29 12:41:51 +01:00 committed by Robin Gloster
parent 2820e1df5c
commit df0d11575c

View file

@ -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;
};
}