mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
b1bb12001d
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/roundcube/versions
35 lines
968 B
Nix
35 lines
968 B
Nix
{ lib, fetchurl, stdenv, buildEnv, roundcube, roundcubePlugins }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "roundcube";
|
|
version = "1.3.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz";
|
|
sha256 = "1b91amcpzb7935hpm67iqw92bl5r1a0rkfrc8gfm8w9sngzv8vbj";
|
|
};
|
|
|
|
patches = [ ./0001-Don-t-resolve-symlinks-when-trying-to-find-INSTALL_P.patch ];
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -r * $out/
|
|
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;
|
|
};
|
|
}
|