dovecout: fix systemd unit dir

the configure flag we were using was dropped in
a42bb363b4
This commit is contained in:
ajs124 2021-06-21 16:21:41 +02:00
parent fd83b193ac
commit 5fa6e9c403

View file

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
preConfigure = ''
patchShebangs src/config/settings-get.pl
'';
'' + lib.optionalString (stdenv.isLinux) "export systemdsystemunitdir=$out/etc/systemd/system";
# We need this for sysconfdir, see remark below.
installFlags = [ "DESTDIR=$(out)" ];
@ -75,8 +75,8 @@ stdenv.mkDerivation rec {
"lib_cv_va_copy=yes"
"lib_cv___va_copy=yes"
"lib_cv_va_val_copy=yes"
] ++ lib.optional (stdenv.isLinux) "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
++ lib.optional (stdenv.isDarwin) "--enable-static"
] ++ lib.optional stdenv.isLinux "--with-systemd"
++ lib.optional stdenv.isDarwin "--enable-static"
++ lib.optional withMySQL "--with-mysql"
++ lib.optional withPgSQL "--with-pgsql"
++ lib.optional withSQLite "--with-sqlite";