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