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
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user