Skip to content

Commit

Permalink
Use stdenv.hostPlatform.isDarwin instead of stdenv.isDarwin
Browse files Browse the repository at this point in the history
Co-authored-by: Leah Amelia Chen <[email protected]>
  • Loading branch information
smaret and pluiedev authored Dec 26, 2024
1 parent 53091da commit 74a997b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/by-name/im/imager/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);

Expand Down

0 comments on commit 74a997b

Please sign in to comment.