mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
df0d11575c
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 ]) ```
27 lines
808 B
Nix
27 lines
808 B
Nix
{ lib, stdenv, fetchzip, buildEnv, roundcube, roundcubePlugins }:
|
|
let
|
|
version = "1.3.8";
|
|
in
|
|
fetchzip rec {
|
|
name= "roundcube-${version}";
|
|
|
|
url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz";
|
|
sha256 = "1lhwr13bglm8rqgamnb480b07wpqhw9bskjj2xxb0x8kdjly29ks";
|
|
|
|
extraPostFetch = ''
|
|
ln -sf /etc/roundcube/config.inc.php $out/config/config.inc.php
|
|
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 ];
|
|
license = stdenv.lib.licenses.gpl3;
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|