From a9f3d45fb167a6da686fcf6f8e06758d28ef331c Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Thu, 23 Jan 2025 08:05:40 -0500 Subject: [PATCH] stubby: fix build on non-Linux `systemd` is Linux only, so only use it then. Fixes e.g. Darwin build. --- pkgs/development/libraries/getdns/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/getdns/default.nix b/pkgs/development/libraries/getdns/default.nix index 3be26afe3e52..dda34ffa5a27 100644 --- a/pkgs/development/libraries/getdns/default.nix +++ b/pkgs/development/libraries/getdns/default.nix @@ -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