fixup! WIP: find libsystemd with autoconfig
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
pam,
|
||||
libmicrohttpd,
|
||||
cjson,
|
||||
systemdMinimal,
|
||||
|
||||
CoreFoundation,
|
||||
Security,
|
||||
@@ -43,6 +44,7 @@
|
||||
withOpenLDAPAsHDBModule ? false,
|
||||
withOpenSSL ? true,
|
||||
withSQLite3 ? true,
|
||||
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemdMinimal
|
||||
}:
|
||||
|
||||
assert lib.assertMsg (withOpenLDAPAsHDBModule -> withOpenLDAP) ''
|
||||
@@ -89,7 +91,8 @@ stdenv.mkDerivation {
|
||||
++ lib.optionals (withMicroHTTPD) [ libmicrohttpd ]
|
||||
++ lib.optionals (withOpenLDAP) [ openldap ]
|
||||
++ lib.optionals (withOpenSSL) [ openssl ]
|
||||
++ lib.optionals (withSQLite3) [ sqlite ];
|
||||
++ lib.optionals (withSQLite3) [ sqlite ]
|
||||
++ lib.optionals (withSystemd) [ systemdMinimal ];
|
||||
|
||||
doCheck = true;
|
||||
nativeCheckInputs = [
|
||||
@@ -125,6 +128,9 @@ stdenv.mkDerivation {
|
||||
]
|
||||
++ lib.optionals (withSQLite3) [
|
||||
"--with-sqlite3=${sqlite.dev}"
|
||||
]
|
||||
++ lib.optionals (withSystemd) [
|
||||
"--with-systemd=yes"
|
||||
];
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -74,6 +74,7 @@ in
|
||||
ExecStart = "${package}/libexec/kadmind --config-file=/etc/heimdal-kdc/kdc.conf";
|
||||
Slice = "system-kerberos-server.slice";
|
||||
StateDirectory = "heimdal";
|
||||
Type = "notify";
|
||||
};
|
||||
restartTriggers = [ kdcConfFile ];
|
||||
};
|
||||
@@ -98,6 +99,7 @@ in
|
||||
ExecStart = "${package}/libexec/kpasswdd";
|
||||
Slice = "system-kerberos-server.slice";
|
||||
StateDirectory = "heimdal";
|
||||
Type = "notify";
|
||||
};
|
||||
restartTriggers = [ kdcConfFile ];
|
||||
};
|
||||
|
||||
@@ -31,6 +31,7 @@ pkgs.mkShell {
|
||||
openldap
|
||||
openssl
|
||||
sqlite
|
||||
systemdMinimal
|
||||
];
|
||||
|
||||
env = {
|
||||
|
||||
Reference in New Issue
Block a user