update roundcube and remove old files
This commit is contained in:
parent
49dba90292
commit
9fb09a6e14
|
@ -2,7 +2,7 @@
|
|||
"nixos-mailserver": {
|
||||
"branch": "main",
|
||||
"repo": "https://codeberg.org/tokudan/nixos-mailserver.git",
|
||||
"rev": "7f2ea27801c4cbfcf46292911b5959528b4eed49",
|
||||
"rev": "ad368983114299608ce02e69043caa9e1ab53df6",
|
||||
"type": "git"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
{ stdenv, lib, fetchFromGitHub, config ? null, cacheDir ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "postfixadmin-${version}";
|
||||
version = "3.3.8";
|
||||
rev = "${name}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "postfixadmin";
|
||||
repo = "postfixadmin";
|
||||
sha256 = "02qnan2yk74i5z8z919zc0ris4ixpqwzl93kjga6db57nki7lwx9";
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
cp -Rp ./ $out/
|
||||
${lib.optionalString (config != null) ''
|
||||
ln -s ${config} $out/config.local.php
|
||||
''}
|
||||
${lib.optionalString (cacheDir != null) ''
|
||||
ln -s ${cacheDir}/templates_c $out/templates_c
|
||||
''}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Postfix Admin";
|
||||
homepage = http://postfixadmin.sourceforge.net/;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ tokudan ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
{ stdenv, lib, fetchurl, acl, librsync, ncurses, openssl, zlib, conf ? null, temp ? null, logs ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "roundcube-${version}";
|
||||
version = "1.4.11";
|
||||
url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz";
|
||||
|
||||
src = fetchurl {
|
||||
inherit url;
|
||||
curlOpts = "--location";
|
||||
sha256 = "1dv9bvq1q2dlrlqykvibfcq70q6qc9an08vpik4c4prh1h3ijwxc";
|
||||
};
|
||||
preferLocalBuild = true;
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
cp -Rp ./ $out/
|
||||
cd "$out"
|
||||
${lib.optionalString (conf != null) "ln -s ${conf} $out/config/config.inc.php"}
|
||||
${lib.optionalString (temp != null) "mv temp temp.dist; ln -s ${temp} $out/temp"}
|
||||
${lib.optionalString (logs != null) "mv logs logs.dist; ln -s ${logs} $out/logs"}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Roundcube";
|
||||
homepage = https://roundcube.net/;
|
||||
license = licenses.agpl3;
|
||||
maintainers = with maintainers; [ tokudan ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue