diff options
Diffstat (limited to 'pkgs/webapps/roundcubemail/default.nix')
-rw-r--r-- | pkgs/webapps/roundcubemail/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/webapps/roundcubemail/default.nix b/pkgs/webapps/roundcubemail/default.nix index ba85f37..4f288b8 100644 --- a/pkgs/webapps/roundcubemail/default.nix +++ b/pkgs/webapps/roundcubemail/default.nix | |||
@@ -1,6 +1,6 @@ | |||
1 | { varDir ? "/var/lib/roundcubemail" | 1 | { varDir ? "/var/lib/roundcubemail" |
2 | , roundcube_config ? "/etc/roundcube/config.php" | 2 | , roundcube_config ? "/etc/roundcube/config.php" |
3 | , stdenv, fetchurl }: | 3 | , stdenv, fetchurl, jre, unzip }: |
4 | let | 4 | let |
5 | defaultInstall = '' | 5 | defaultInstall = '' |
6 | mkdir -p $out | 6 | mkdir -p $out |
@@ -33,14 +33,23 @@ let | |||
33 | withPlugins = morePlugins: moreSkins: old.withPlugins (morePlugins ++ plugins) (morePlugins ++ skins); | 33 | withPlugins = morePlugins: moreSkins: old.withPlugins (morePlugins ++ plugins) (morePlugins ++ skins); |
34 | }; | 34 | }; |
35 | }); | 35 | }); |
36 | shrinker = fetchurl { | ||
37 | url = "http://dl.google.com/closure-compiler/compiler-latest.zip"; | ||
38 | sha256 = "0naf3kflhlkm17ls1x7mgddd3b01f8yzbbbdjqwy5m12jmkzl2d5"; | ||
39 | }; | ||
36 | package = stdenv.mkDerivation rec { | 40 | package = stdenv.mkDerivation rec { |
37 | version = "1.4-rc1"; | 41 | version = "1.4.4"; |
38 | name = "roundcubemail-${version}"; | 42 | name = "roundcubemail-${version}"; |
39 | src= fetchurl { | 43 | src= fetchurl { |
40 | url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/${name}-complete.tar.gz"; | 44 | url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/${name}-complete.tar.gz"; |
41 | sha256 = "0p18wffwi2prh6vxhx1bc69qd1vwybggm8gvg3shahfdknxci9i4"; | 45 | sha256 = "1my726p0wmsn21nbdsjx02h6hnbh8nidzipzdy0gk0qgda1j729b"; |
42 | }; | 46 | }; |
47 | patches = [ ./add_all.patch ]; # This patch includes js modification which requires to re-run the jsshrink below | ||
48 | buildInputs = [ unzip jre ]; | ||
43 | buildPhase = '' | 49 | buildPhase = '' |
50 | mkdir -p /tmp | ||
51 | unzip -p "${shrinker}" "*.jar" > "/tmp/compiler.jar" | ||
52 | ./bin/jsshrink.sh | ||
44 | sed -i \ | 53 | sed -i \ |
45 | -e "s|RCUBE_INSTALL_PATH . 'temp.*|'${varDir}/cache';|" \ | 54 | -e "s|RCUBE_INSTALL_PATH . 'temp.*|'${varDir}/cache';|" \ |
46 | config/defaults.inc.php | 55 | config/defaults.inc.php |