Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

roundcube: don't resolve symlinks in update.sh

A side-effect of this is that the derivation required a rewrite in order
to apply the patch properly.

(cherry picked from commit 324e6dba04ae636e10ac3cf72689fee9e578e530)

authored by

Maximilian Bosch and committed by
Robin Gloster
8a21566f 81112020

+42 -8
+15 -8
pkgs/servers/roundcube/default.nix
··· 1 - { lib, stdenv, fetchzip, buildEnv, roundcube, roundcubePlugins }: 2 - let 1 + { lib, fetchurl, stdenv, buildEnv, roundcube, roundcubePlugins }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "roundcube"; 3 5 version = "1.3.8"; 4 - in 5 - fetchzip rec { 6 - name= "roundcube-${version}"; 6 + 7 + src = fetchurl { 8 + url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz"; 9 + sha256 = "018djad7ygfl9c9f2l2j42qkg31ml3hs2f01f0dk361zckwk77n4"; 10 + }; 11 + 12 + patches = [ ./0001-Don-t-resolve-symlinks-when-trying-to-find-INSTALL_P.patch ]; 7 13 8 - url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz"; 9 - sha256 = "1lhwr13bglm8rqgamnb480b07wpqhw9bskjj2xxb0x8kdjly29ks"; 14 + dontBuild = true; 10 15 11 - extraPostFetch = '' 16 + installPhase = '' 17 + mkdir $out 18 + cp -r * $out/ 12 19 ln -sf /etc/roundcube/config.inc.php $out/config/config.inc.php 13 20 rm -rf $out/installer 14 21 '';