diff options
author | Victor SENE <victor@sene.ovh> | 2018-09-26 15:34:46 +0200 |
---|---|---|
committer | Victor SENE <victor@sene.ovh> | 2018-09-26 15:34:46 +0200 |
commit | e387f2506ba402b6c03150485a85b144b03af638 (patch) | |
tree | 5c3a3672c903f9aa86fcd3251162014fcdeed5da | |
parent | 1e7997bdd2a5dba6a579912cb27ef9461e75e695 (diff) |
roundcube: simplify using fetchzip
-rw-r--r-- | pkgs/servers/roundcube/default.nix | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/pkgs/servers/roundcube/default.nix b/pkgs/servers/roundcube/default.nix index 961bdd3c00eb1..40afd7043e414 100644 --- a/pkgs/servers/roundcube/default.nix +++ b/pkgs/servers/roundcube/default.nix @@ -1,17 +1,14 @@ -{ lib, stdenv, fetchurl }: - -stdenv.mkDerivation rec { - name= "roundcube-${version}"; +{ lib, stdenv, fetchzip }: +let version = "1.3.7"; +in +fetchzip rec { + name= "roundcube-${version}"; - src = fetchurl { - url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz"; - sha256 = "31bd37d0f89dc634064f170c6ed8981c258754b6f81eccb59a2634b29d0bb01c"; - }; - - installPhase = '' - mkdir -p $out/ - cp -R . $out/ + url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz"; + sha256 = "0xwqy0adynx7066a0cvz9vyg85waax1i4p70kcdkz7q5jnw4jzhf"; + + extraPostFetch = '' ln -sf /etc/roundcube/config.inc.php $out/config/config.inc.php rm -rf $out/installer ''; |