···6677 import strutils
8899-+when defined(nixbuild):
99++when defined(nixbuild) and not defined(windows):
1010+ import os
1111+
1212 type
···1616 libCandidates(prefix & middle & suffix, dest)
1717 else:
1818 add(dest, s)
1919-+ when defined(nixbuild):
1919++ when defined(nixbuild) and not defined(windows):
2020+ # Nix doesn't have a global library directory so
2121+ # load libraries using an absolute path if one
2222+ # can be derived from NIX_LDFLAGS.