mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
dovecot: enable tests
test harness appears to reset PATH, making hard-coding paths of basic tools necessary
This commit is contained in:
parent
8004e04140
commit
f8e309adc3
@ -1,5 +1,5 @@
|
||||
{ stdenv, lib, fetchurl, perl, pkg-config, systemd, openssl
|
||||
, bzip2, zlib, lz4, inotify-tools, pam, libcap
|
||||
, bzip2, zlib, lz4, inotify-tools, pam, libcap, coreutils
|
||||
, clucene_core_2, icu, openldap, libsodium, libstemmer, cyrus_sasl
|
||||
, nixosTests
|
||||
# Auth modules
|
||||
@ -27,9 +27,20 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preConfigure = ''
|
||||
postPatch = ''
|
||||
sed -i -E \
|
||||
-e 's!/bin/sh\b!${stdenv.shell}!g' \
|
||||
-e 's!([^[:alnum:]/_-])/bin/([[:alnum:]]+)\b!\1${coreutils}/bin/\2!g' \
|
||||
-e 's!([^[:alnum:]/_-])(head|sleep|cat)\b!\1${coreutils}/bin/\2!g' \
|
||||
src/lib-program-client/test-program-client-local.c
|
||||
|
||||
patchShebangs src/lib-smtp/test-bin/*.sh
|
||||
sed -i -s -E 's!\bcat\b!${coreutils}/bin/cat!g' src/lib-smtp/test-bin/*.sh
|
||||
|
||||
patchShebangs src/config/settings-get.pl
|
||||
'' + lib.optionalString (stdenv.isLinux) "export systemdsystemunitdir=$out/etc/systemd/system";
|
||||
'' + lib.optionalString stdenv.isLinux ''
|
||||
export systemdsystemunitdir=$out/etc/systemd/system
|
||||
'';
|
||||
|
||||
# We need this for sysconfdir, see remark below.
|
||||
installFlags = [ "DESTDIR=$(out)" ];
|
||||
@ -81,6 +92,8 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional withPgSQL "--with-pgsql"
|
||||
++ lib.optional withSQLite "--with-sqlite";
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://dovecot.org/";
|
||||
description = "Open source IMAP and POP3 email server written with security primarily in mind";
|
||||
|
Loading…
Reference in New Issue
Block a user