mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{
|
|
fetchurl,
|
|
lib,
|
|
stdenv,
|
|
buildEnv,
|
|
roundcube,
|
|
roundcubePlugins,
|
|
nixosTests,
|
|
runCommand,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "roundcube";
|
|
version = "1.7.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz";
|
|
sha256 = "sha256-HgOCvO/WJ6sLYoXTGB3fultET9z21J8z9eoV+/l4ZO8=";
|
|
};
|
|
|
|
patches = [ ./0001-Don-t-resolve-symlinks-when-trying-to-find-INSTALL_P.patch ];
|
|
|
|
dontBuild = true;
|
|
|
|
# FIXME: this should be removed after upstream releases the update forcing the use of public_html.
|
|
dontCheckForBrokenSymlinks = 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
|
|
(runCommand "dummy" { } ''
|
|
mkdir -p $out/public_html/
|
|
'')
|
|
];
|
|
};
|
|
|
|
passthru.tests = { inherit (nixosTests) roundcube; };
|
|
|
|
meta = {
|
|
description = "Open Source Webmail Software";
|
|
maintainers = with lib.maintainers; [
|
|
vskilet
|
|
ma27
|
|
];
|
|
license = lib.licenses.gpl3;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|