From 00c59b747738e51c822c61807ded0da17d4db62c Mon Sep 17 00:00:00 2001 From: Defelo Date: Thu, 20 Nov 2025 16:52:34 +0100 Subject: [PATCH] sentry-cli: apply fix-swift-lib-path patch only on darwin --- pkgs/by-name/se/sentry-cli/package.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/se/sentry-cli/package.nix b/pkgs/by-name/se/sentry-cli/package.nix index ac1c66aca115..a0cb8d43f787 100644 --- a/pkgs/by-name/se/sentry-cli/package.nix +++ b/pkgs/by-name/se/sentry-cli/package.nix @@ -25,10 +25,8 @@ rustPlatform.buildRustPackage rec { # Needed to get openssl-sys to use pkgconfig. OPENSSL_NO_VENDOR = 1; - patches = [ - (replaceVars ./fix-swift-lib-path.patch { - swiftLib = lib.getLib swift; - }) + patches = lib.optionals stdenv.hostPlatform.isDarwin [ + (replaceVars ./fix-swift-lib-path.patch { swiftLib = lib.getLib swift; }) ]; buildInputs = [ openssl ];