Merge pull request #227980 from 0x120581f/init/xcodes

xcodes: init at 1.3.0
This commit is contained in:
Pol Dellaiera 2023-06-09 08:14:50 +02:00 committed by GitHub
commit 885318f6e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -3765,6 +3765,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 { };