stubby: fix build on non-Linux
`systemd` is Linux only, so only use it then. Fixes e.g. Darwin build.
This commit is contained in:
committed by
Emery Hemingway
parent
9e297837c3
commit
a9f3d45fb1
@@ -97,12 +97,14 @@ rec {
|
||||
yq
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
getdns
|
||||
libyaml
|
||||
openssl
|
||||
systemd
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.Security ];
|
||||
buildInputs =
|
||||
[
|
||||
getdns
|
||||
libyaml
|
||||
openssl
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [ systemd ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.Security ];
|
||||
|
||||
postInstall = ''
|
||||
rm -r $out/share/doc
|
||||
|
||||
Reference in New Issue
Block a user