mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
ppp: add withSystemd option
Not all platforms support systemd. This fixes e.g. pkgsStatic.ppp.
Fixes: 8990531424 ("ppp: add systemd sd-notify support")
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
openssl,
|
||||
pkg-config,
|
||||
stdenv,
|
||||
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemdMinimal,
|
||||
systemdMinimal,
|
||||
}:
|
||||
|
||||
@@ -28,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||
"--localstatedir=/var"
|
||||
"--sysconfdir=/etc"
|
||||
"--with-openssl=${openssl.dev}"
|
||||
"--enable-systemd"
|
||||
(lib.enableFeature withSystemd "systemd")
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -36,14 +37,17 @@ stdenv.mkDerivation rec {
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
bash
|
||||
libpcap
|
||||
libxcrypt
|
||||
linux-pam
|
||||
openssl
|
||||
systemdMinimal
|
||||
];
|
||||
buildInputs =
|
||||
[
|
||||
bash
|
||||
libpcap
|
||||
libxcrypt
|
||||
linux-pam
|
||||
openssl
|
||||
]
|
||||
++ lib.optionals withSystemd [
|
||||
systemdMinimal
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
for file in $(find -name Makefile.linux); do
|
||||
|
||||
Reference in New Issue
Block a user