From 74a997bfe68debadbd7491bc788011b2ce8f9ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Maret?= Date: Thu, 26 Dec 2024 22:21:28 +0100 Subject: [PATCH] Use stdenv.hostPlatform.isDarwin instead of stdenv.isDarwin Co-authored-by: Leah Amelia Chen --- pkgs/by-name/im/imager/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/im/imager/package.nix b/pkgs/by-name/im/imager/package.nix index 59da96f0af8ca..bc7f365367fe4 100644 --- a/pkgs/by-name/im/imager/package.nix +++ b/pkgs/by-name/im/imager/package.nix @@ -70,7 +70,7 @@ stdenv.mkDerivation (finalAttrs: { # Workaround for https://github.com/NixOS/nixpkgs/issues/304528 env.GAG_CPP = lib.optionalString stdenv.hostPlatform.isDarwin "${gfortran.outPath}/bin/cpp"; - NIX_LDFLAGS = lib.optionalString stdenv.isDarwin ( + NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin ( with darwin.apple_sdk.frameworks; "-F${CoreFoundation}/Library/Frameworks" );