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:
Andrew Marshall
2025-01-26 11:15:02 +05:30
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