diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-02-20 12:16:56 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-02-20 12:16:56 +0100 |
commit | b24d64b3b1ef897f07cd072a88a9881cb330aa7f (patch) | |
tree | a87bb2eed9af3ef1efd51dd65221d91f0c949041 /nixpkgs/pkgs/by-name/xc | |
parent | 73338df7473bb3810e70a16b8b0cba4f0f606f2b (diff) | |
parent | fa15b53dbea5028db38d6e09b4cef6eba42aeebb (diff) | |
download | nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.gz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.bz2 nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.lz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.xz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.zst nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/xc')
-rw-r--r-- | nixpkgs/pkgs/by-name/xc/xcbeautify/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/xc/xcbeautify/package.nix b/nixpkgs/pkgs/by-name/xc/xcbeautify/package.nix new file mode 100644 index 000000000000..5ad33771d358 --- /dev/null +++ b/nixpkgs/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 ]; + }; +} |