nixpkgs/pkgs/by-name/xc/xcbeautify/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.0 KiB
Nix
Raw Normal View History

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