From be26319236597cf5538f2afe397cdaf628206d8b Mon Sep 17 00:00:00 2001 From: 0x120581f Date: Fri, 14 Apr 2023 17:36:19 +0200 Subject: [PATCH] xcodes: init at 1.3.0 --- maintainers/maintainer-list.nix | 6 ++++ pkgs/development/tools/xcodes/default.nix | 40 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 48 insertions(+) create mode 100644 pkgs/development/tools/xcodes/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index a4ce78e7ce41..b0395c42dcd9 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/development/tools/xcodes/default.nix b/pkgs/development/tools/xcodes/default.nix new file mode 100644 index 000000000000..0309e29cae6b --- /dev/null +++ b/pkgs/development/tools/xcodes/default.nix @@ -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; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8f17922c71f5..b4bef7c661be 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };