git.iko.soy/typeable/nixpkgs
on master help sign in
dovecout: fix systemd unit dir

the configure flag we were using was dropped in https://github.com/dovecot/core/commit/a42bb363b4ab475ced72fada57cc3e1de8b05bca

commit5fa6e9c403940c7c641356daf9c7ac05e464f58f authorajs124 <git@ajs124.de> dateMon 21 Jun 2021, 16:21 (5 years ago) parentfd83b19
1 file changed+3−3
pkgs/servers/mail/dovecot/default.nix+3−3
pkgs/servers/mail/dovecot/default.nix+3−3
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
2929
3030 preConfigure = ''
3131 patchShebangs src/config/settings-get.pl
32− '';
32+ '' + lib.optionalString (stdenv.isLinux) "export systemdsystemunitdir=$out/etc/systemd/system";
3333
3434 # We need this for sysconfdir, see remark below.
3535 installFlags = [ "DESTDIR=$(out)" ];
@@ -75,8 +75,8 @@ stdenv.mkDerivation rec {
7575 "lib_cv_va_copy=yes"
7676 "lib_cv___va_copy=yes"
7777 "lib_cv_va_val_copy=yes"
78− ] ++ lib.optional (stdenv.isLinux) "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
79− ++ lib.optional (stdenv.isDarwin) "--enable-static"
78+ ] ++ lib.optional stdenv.isLinux "--with-systemd"
79+ ++ lib.optional stdenv.isDarwin "--enable-static"
8080 ++ lib.optional withMySQL "--with-mysql"
8181 ++ lib.optional withPgSQL "--with-pgsql"
8282 ++ lib.optional withSQLite "--with-sqlite";