2019-01-29 12:41:51 +01:00
|
|
|
{ lib, stdenv, fetchzip, buildEnv, roundcube, roundcubePlugins }:
|
2018-09-26 15:34:46 +02:00
|
|
|
let
|
2018-11-30 13:35:25 +01:00
|
|
|
version = "1.3.8";
|
2018-09-26 15:34:46 +02:00
|
|
|
in
|
|
|
|
fetchzip rec {
|
|
|
|
name= "roundcube-${version}";
|
2018-09-24 14:32:54 +02:00
|
|
|
|
2018-11-30 13:35:25 +01:00
|
|
|
url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz";
|
|
|
|
sha256 = "1lhwr13bglm8rqgamnb480b07wpqhw9bskjj2xxb0x8kdjly29ks";
|
|
|
|
|
2018-09-26 15:34:46 +02:00
|
|
|
extraPostFetch = ''
|
2018-09-24 14:32:54 +02:00
|
|
|
ln -sf /etc/roundcube/config.inc.php $out/config/config.inc.php
|
|
|
|
rm -rf $out/installer
|
|
|
|
'';
|
|
|
|
|
2019-01-29 12:41:51 +01:00
|
|
|
passthru.withPlugins = f: buildEnv {
|
|
|
|
name = "${roundcube.name}-with-plugins";
|
|
|
|
paths = (f roundcubePlugins) ++ [ roundcube ];
|
|
|
|
};
|
|
|
|
|
2018-09-24 14:32:54 +02:00
|
|
|
meta = {
|
|
|
|
description = "Open Source Webmail Software";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vskilet ];
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|