From 56cb21c42b58073d2c9b5bfffdbe600c5a388f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=B6ller?= Date: Tue, 11 Mar 2025 10:59:24 +0100 Subject: [PATCH] smartmontools: fix static build `systemdLibs` is not available for static linking, so remove it when building `pkgsStatic.smartmontools` or similar. --- pkgs/tools/system/smartmontools/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index 0ef4f8d72c5c..d4b80e17bc96 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -54,7 +54,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook ]; buildInputs = - lib.optionals stdenv.hostPlatform.isLinux [ systemdLibs ] + lib.optionals (lib.meta.availableOn stdenv.hostPlatform systemdLibs) [ systemdLibs ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ IOKit ApplicationServices