1{ 2 callPackage, 3 stdenv, 4}: 5 6if stdenv.hostPlatform.isDarwin then 7 callPackage ./darwin.nix { } 8else if stdenv.hostPlatform.isLinux then 9 callPackage ./linux.nix { } 10else 11 throw "Unsupported platform: ${stdenv.hostPlatform.system}"