xcodes: init at 1.3.0

This commit is contained in:
0x120581f 2023-04-14 17:36:19 +02:00 committed by 0x120581f
parent cc4e1f69ed
commit be26319236
3 changed files with 48 additions and 0 deletions

View file

@ -64,6 +64,12 @@
githubId = 64707304;
name = "Dmitry Kulikov";
};
_0x120581f = {
email = "nixpkgs@0x120581f.dev";
name = "0x120581f";
github = "0x120581f";
githubId = 130835755;
};
_0x4A6F = {
email = "mail-maintainer@0x4A6F.dev";
matrix = "@0x4a6f:matrix.org";

View file

@ -0,0 +1,40 @@
{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation (finalAttrs: {
pname = "xcodes";
version = "1.3.0";
src = fetchurl {
url = "https://github.com/XcodesOrg/xcodes/releases/download/${finalAttrs.version}/xcodes.zip";
hash = "sha256:0cqb0gfb80xrnm4fipr46kbzqz2kicc13afhdxkbifzm4k83any5";
};
nativeBuildInputs = [ unzip ];
unpackPhase = ''
runHook preUnpack
unzip -q $src
runHook postUnpack
'';
dontPatch = true;
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m755 xcodes $out/bin/xcodes
runHook postInstall
'';
dontFixup = true;
meta = with lib; {
description = "Command-line tool to install and switch between multiple versions of Xcode";
homepage = "https://github.com/XcodesOrg/xcodes";
license = licenses.mit;
maintainers = with maintainers; [ _0x120581f ];
platforms = platforms.darwin;
};
})

View file

@ -3763,6 +3763,8 @@ with pkgs;
xcodeenv = callPackage ../development/mobile/xcodeenv { };
xcodes = callPackage ../development/tools/xcodes { };
gomobile = callPackage ../development/mobile/gomobile { };
ssh-agents = callPackage ../tools/networking/ssh-agents { };