From fb5603461839dfbc1ae62e723e450b0c13417c77 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Sun, 4 Feb 2024 18:36:07 +0530 Subject: [PATCH] xcbeautify: init at 1.4.0 --- pkgs/by-name/xc/xcbeautify/package.nix | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/xc/xcbeautify/package.nix diff --git a/pkgs/by-name/xc/xcbeautify/package.nix b/pkgs/by-name/xc/xcbeautify/package.nix new file mode 100644 index 000000000000..5ad33771d358 --- /dev/null +++ b/pkgs/by-name/xc/xcbeautify/package.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchurl +, unzip +}: + +stdenv.mkDerivation rec { + pname = "xcbeautify"; + version = "1.4.0"; + + src = fetchurl { + url = "https://github.com/cpisciotta/xcbeautify/releases/download/${version}/xcbeautify-${version}-${stdenv.hostPlatform.darwinArch}-apple-macosx.zip"; + hash = lib.getAttr stdenv.hostPlatform.darwinArch { + arm64 = "sha256-4b4mXT5IfNOS8iOrZASDhTrmOehG4mePcoiKxR+IdZk="; + x86_64 = "sha256-adEfAK7n3Q/Yd1deyJx7htX7hZaGDztEeBv4z2A0wzg="; + }; + }; + + nativeBuildInputs = [ unzip ]; + + unpackPhase = '' + unzip $src + ''; + + installPhase = '' + runHook preInstall + + install -D xcbeautify $out/bin/xcbeautify + + runHook postInstall + ''; + + meta = with lib; { + description = "Little beautifier tool for xcodebuild"; + homepage = "https://github.com/cpisciotta/xcbeautify"; + license = licenses.mit; + platforms = platforms.darwin; + mainProgram = "xcbeautify"; + maintainers = with maintainers; [ siddarthkay ]; + }; +}