pkgs/by-name/fo/foo: "package.nix" must be a file.
