nix: some rearranging, start of libports