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:
parent
2820e1df5c
commit
df0d11575c
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchzip }:
|
{ lib, stdenv, fetchzip, buildEnv, roundcube, roundcubePlugins }:
|
||||||
let
|
let
|
||||||
version = "1.3.8";
|
version = "1.3.8";
|
||||||
in
|
in
|
||||||
@ -13,6 +13,11 @@ fetchzip rec {
|
|||||||
rm -rf $out/installer
|
rm -rf $out/installer
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.withPlugins = f: buildEnv {
|
||||||
|
name = "${roundcube.name}-with-plugins";
|
||||||
|
paths = (f roundcubePlugins) ++ [ roundcube ];
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Open Source Webmail Software";
|
description = "Open Source Webmail Software";
|
||||||
maintainers = with stdenv.lib.maintainers; [ vskilet ];
|
maintainers = with stdenv.lib.maintainers; [ vskilet ];
|
||||||
@ -20,4 +25,3 @@ fetchzip rec {
|
|||||||
platforms = stdenv.lib.platforms.all;
|
platforms = stdenv.lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user