12 generated = swiftpm2nix.helpers ./generated;
13 stdenv = swiftPackages.stdenv;
15 stdenv.mkDerivation (finalAttrs: {
19 src = fetchFromGitHub {
22 rev = finalAttrs.version;
23 hash = "sha256-TwPfASRU98rifyA/mINFfoY0MbbwmAh8JneVpJa38CA=";
32 configurePhase = generated.configure;
37 binPath="$(swiftpmBinPath)"
38 install -D $binPath/xcodes $out/bin/xcodes
39 wrapProgram $out/bin/xcodes \
40 --prefix PATH : ${lib.makeBinPath [ aria2 ]}
46 changelog = "https://github.com/XcodesOrg/xcodes/releases/tag/${finalAttrs.version}";
47 description = "Command-line tool to install and switch between multiple versions of Xcode";
48 homepage = "https://github.com/XcodesOrg/xcodes";
49 license = with lib.licenses; [
54 maintainers = with lib.maintainers; [
58 platforms = lib.platforms.darwin;