buildNimPackage: drop dynlib patch on win builds

omit windows build from dynamic linking patch to avoid cyclic import
this makes it possible to cross-compile for windows using buildNimPackage

authored by

AsbjornOlling and committed by
Emery Hemingway
a341e62e ea8f0141

+2 -2
+2 -2
pkgs/development/compilers/nim/nixbuild.patch
··· 6 6 7 7 import strutils 8 8 9 - +when defined(nixbuild): 9 + +when defined(nixbuild) and not defined(windows): 10 10 + import os 11 11 + 12 12 type ··· 16 16 libCandidates(prefix & middle & suffix, dest) 17 17 else: 18 18 add(dest, s) 19 - + when defined(nixbuild): 19 + + when defined(nixbuild) and not defined(windows): 20 20 + # Nix doesn't have a global library directory so 21 21 + # load libraries using an absolute path if one 22 22 + # can be derived from NIX_LDFLAGS.