Memoize result of builtins.exec

Nix doesn’t have any form of maximal laziness. You can only get it by binding the repeated expression to a variable in a high enough scope.

2 Likes