2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xcbeautify";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.4.1";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
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 {
|
2024-07-27 06:49:29 +00:00
|
|
|
arm64 = "sha256-EjBhpw9qsOEweXOepQVPNL/hCxj12Z5gyvv7neNEeMU=";
|
|
|
|
x86_64 = "sha256-Zb54g0cMWB6ouzLPUd+VTCicp+bVb5aDKxNSB3eGaZU=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
unzip $src
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -D xcbeautify $out/bin/xcbeautify
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2024-02-29 20:09:43 +00:00
|
|
|
description = "Little beautifier tool for xcodebuild";
|
|
|
|
homepage = "https://github.com/cpisciotta/xcbeautify";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.darwin;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "xcbeautify";
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with lib.maintainers; [ siddarthkay ];
|
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
}
|