let pkgs = import <nixpkgs> {}; callPackage = pkgs.newScope self; self = { foo = callPackage ./foo {}; }; in self