on e94de40 help sign in
haskell.nix/lib/override-with.nix
9 lines 292 B history raw
1# overrideWith - Allow the user to override the given default path
2# with a NIX_PATH entry.
3override: default:
4 let
5 try = builtins.tryEval (builtins.findFile builtins.nixPath override);
6 in if try.success then
7 builtins.trace "using search host <${override}>" try.value
8 else
9 default