nim: propagate Security framework to all nim packages on darwin

Many nim packages regressed on darwin after 31254120db53fe07d9f1f05fa8ff41af8feaac03, which upgrade nim to 1.6.12. The cause of the breakage is that the nim standard library was changed to link against the Security framework when using the system rng on darwin. Notably not *all* nim packages were broken by this, since packages that don't use this part of the standard library don't need the framework to build.

This commit adds the Security framework to the depsTargetTargetPropagated for the compiler wrapper, since the standard library isn't fully functional without it.

authored by Benjamin Lee and committed by Emery Hemingway 2ba48cc8 d0748d83

+4
+4
pkgs/development/compilers/nim/default.nix
··· 203 203 204 204 nativeBuildInputs = [ makeWrapper ]; 205 205 206 + # Needed for any nim package that uses the standard library's 207 + # 'std/sysrand' module. 208 + depsTargetTargetPropagated = lib.optional stdenv.isDarwin Security; 209 + 206 210 patches = [ 207 211 ./nim.cfg.patch 208 212 # Remove configurations that clash with ours