···128128129129 # Prevents needing to add security_tool as a build tool to all of x509-system's
130130 # dependencies.
131131- x509-system = if pkgs.stdenv.isDarwin && !pkgs.stdenv.cc.nativeLibc
131131+ x509-system = if pkgs.stdenv.targetPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc
132132 then let inherit (pkgs.darwin) security_tool;
133133 in pkgs.lib.overrideDerivation (addBuildDepend super.x509-system security_tool) (drv: {
134134 postPatch = (drv.postPatch or "") + ''