Skip to content

Commit be26319

Browse files
0x120581f0x120581f
authored andcommitted
xcodes: init at 1.3.0
1 parent cc4e1f6 commit be26319

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
githubId = 64707304;
6565
name = "Dmitry Kulikov";
6666
};
67+
_0x120581f = {
68+
email = "[email protected]";
69+
name = "0x120581f";
70+
github = "0x120581f";
71+
githubId = 130835755;
72+
};
6773
_0x4A6F = {
6874
email = "[email protected]";
6975
matrix = "@0x4a6f:matrix.org";
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{ lib, stdenv, fetchurl, unzip }:
2+
3+
stdenv.mkDerivation (finalAttrs: {
4+
pname = "xcodes";
5+
version = "1.3.0";
6+
7+
src = fetchurl {
8+
url = "https://github.com/XcodesOrg/xcodes/releases/download/${finalAttrs.version}/xcodes.zip";
9+
hash = "sha256:0cqb0gfb80xrnm4fipr46kbzqz2kicc13afhdxkbifzm4k83any5";
10+
};
11+
12+
nativeBuildInputs = [ unzip ];
13+
14+
unpackPhase = ''
15+
runHook preUnpack
16+
unzip -q $src
17+
runHook postUnpack
18+
'';
19+
20+
dontPatch = true;
21+
dontConfigure = true;
22+
dontBuild = true;
23+
24+
installPhase = ''
25+
runHook preInstall
26+
mkdir -p $out/bin
27+
install -m755 xcodes $out/bin/xcodes
28+
runHook postInstall
29+
'';
30+
31+
dontFixup = true;
32+
33+
meta = with lib; {
34+
description = "Command-line tool to install and switch between multiple versions of Xcode";
35+
homepage = "https://github.com/XcodesOrg/xcodes";
36+
license = licenses.mit;
37+
maintainers = with maintainers; [ _0x120581f ];
38+
platforms = platforms.darwin;
39+
};
40+
})

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3763,6 +3763,8 @@ with pkgs;
37633763

37643764
xcodeenv = callPackage ../development/mobile/xcodeenv { };
37653765

3766+
xcodes = callPackage ../development/tools/xcodes { };
3767+
37663768
gomobile = callPackage ../development/mobile/gomobile { };
37673769

37683770
ssh-agents = callPackage ../tools/networking/ssh-agents { };

0 commit comments

Comments
 (0)