-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
cyrus: init at 3.4.3 #170919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cyrus: init at 3.4.3 #170919
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { stdenv, lib, fetchurl, cunit }: | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| pname = "wslay"; | ||
| version = "1.1.1"; | ||
|
|
||
| src = fetchurl { | ||
| url = "https://github.com/tatsuhiro-t/wslay/releases/download/release-${version}/wslay-${version}.tar.gz"; | ||
| hash = "sha256-kM5oxt/WFHItRPuxRWOj9trMaLVIsgrjgqxPSVLFUmg="; | ||
| }; | ||
|
|
||
| checkInputs = [ cunit ]; | ||
| doCheck = true; | ||
|
|
||
| meta = with lib; { | ||
| homepage = "https://tatsuhiro-t.github.io/wslay/"; | ||
| description = "The WebSocket library in C"; | ||
| license = with licenses; [ mit ]; | ||
| maintainers = with maintainers; [ pingiun ]; | ||
| platforms = platforms.unix; | ||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,76 @@ | ||||||
| { stdenv, lib, fetchurl, pkg-config | ||||||
| , bison, cyrus_sasl, icu, jansson, flex, libbsd, libtool, libuuid, openssl | ||||||
| , cunit, coreutils, perl | ||||||
| # CalDAV, CardDAV | ||||||
| , withHttp ? true, brotli, libical, libxml2, nghttp2, shapelib, zlib | ||||||
| , withJMAP ? true, libchardet, wslay | ||||||
| , withXapian ? true, xapian | ||||||
| , withCalalarmd ? true | ||||||
| , withMySQL ? false, libmysqlclient | ||||||
| , withPgSQL ? false, postgresql | ||||||
| , withSQLite ? true, sqlite | ||||||
| }: | ||||||
|
|
||||||
| stdenv.mkDerivation rec { | ||||||
| pname = "cyrus"; | ||||||
| version = "3.4.3"; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Version 3.8.0 is now out: |
||||||
|
|
||||||
| src = fetchurl { | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not |
||||||
| url = "https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-imapd-${version}/cyrus-imapd-${version}.tar.gz"; | ||||||
| hash = "sha256-HMyanwY0CE+1SzCmhw2ZNAFRD7yP1I9C1rM22E3ZiV4="; | ||||||
| }; | ||||||
|
|
||||||
| nativeBuildInputs = [ bison flex pkg-config perl ]; | ||||||
| buildInputs = | ||||||
| [ cyrus_sasl.dev icu jansson libbsd libtool libuuid openssl ] | ||||||
| ++ lib.optionals (withHttp || withCalalarmd || withJMAP) [ brotli.dev libical libxml2 nghttp2 shapelib zlib ] | ||||||
| ++ lib.optionals withJMAP [ libchardet wslay ] | ||||||
| ++ lib.optional withXapian xapian | ||||||
| ++ lib.optional withMySQL libmysqlclient | ||||||
| ++ lib.optional withPgSQL postgresql | ||||||
| ++ lib.optional withSQLite sqlite; | ||||||
|
|
||||||
| enableParallelBuilding = true; | ||||||
|
|
||||||
| postPatch = '' | ||||||
| patchShebangs cunit/*.pl | ||||||
| patchShebangs imap/promdatagen | ||||||
| patchShebangs tools/* | ||||||
|
|
||||||
| sed -i \ | ||||||
| -e 's!/usr/bin/touch!${coreutils}/bin/touch!g' \ | ||||||
| -e 's!/bin/echo!${coreutils}/bin/echo!g' \ | ||||||
| -e 's!/bin/sh!${stdenv.shell}!g' \ | ||||||
| -e 's!/usr/bin/tr!${coreutils}/bin/tr!g' \ | ||||||
| cunit/command.testc | ||||||
|
|
||||||
| # failing test case in 3.4.3 | ||||||
| sed -i 's!TESTCASE("re: no re: foobar", "nore:foobar");!!' cunit/conversations.testc | ||||||
| ''; | ||||||
|
|
||||||
| configureFlags = [ | ||||||
| "--enable-autocreate" | ||||||
| "--enable-idled" | ||||||
| "--enable-murder" | ||||||
| "--enable-replication" | ||||||
| "--enable-unit-tests" | ||||||
| "--with-pidfile=/run/cyrus-master.pid" | ||||||
| ] ++ lib.optional (withHttp || withCalalarmd || withJMAP) "--enable-http" | ||||||
| ++ lib.optional withJMAP "--with-jmap" | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ++ lib.optional withXapian "--with-xapian" | ||||||
| ++ lib.optional withCalalarmd "--enable-calalarmd" | ||||||
| ++ lib.optional withMySQL "--with-mysql" | ||||||
| ++ lib.optional withPgSQL "--with-pgsql" | ||||||
| ++ lib.optional withSQLite "--with-sqlite"; | ||||||
|
|
||||||
| checkInputs = [ cunit ]; | ||||||
| doCheck = true; | ||||||
|
|
||||||
| meta = with lib; { | ||||||
| homepage = "https://www.cyrusimap.org"; | ||||||
| description = "Cyrus IMAP is an email, contacts and calendar server."; | ||||||
|
pingiun marked this conversation as resolved.
Outdated
|
||||||
| license = with licenses; [ bsdOriginal ]; | ||||||
| maintainers = with maintainers; [ pingiun ]; | ||||||
| platforms = platforms.unix; | ||||||
| }; | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21010,6 +21010,8 @@ with pkgs; | |
|
|
||
| wlr-protocols = callPackage ../development/libraries/wlroots/protocols.nix { }; | ||
|
|
||
| wslay = callPackage ../development/libraries/wslay { }; | ||
|
|
||
| wt = wt4; | ||
| inherit (callPackages ../development/libraries/wt { | ||
| boost = boost175; | ||
|
|
@@ -21559,6 +21561,8 @@ with pkgs; | |
| erlang = erlangR22; | ||
| }; | ||
|
|
||
| cyrus = callPackage ../servers/mail/cyrus { }; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The project's website, source repo and doc are named Cyrus IMAP(d). |
||
|
|
||
| dcnnt = python3Packages.callPackage ../servers/dcnnt { }; | ||
|
|
||
| dendrite = callPackage ../servers/dendrite { }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not
fetchFromGitHub?