Skip to content

Commit

Permalink
tuist: init at 4.38.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarNestorov committed Dec 29, 2024
1 parent 2e30bda commit cdebc85
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/by-name/tu/tuist/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
lib,
stdenvNoCC,
fetchurl,
unzip,
nix-update-script,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
pname = "tuist";
version = "4.38.2";

src = fetchurl {
url = "https://github.com/tuist/tuist/releases/download/${finalAttrs.version}/tuist.zip";
hash = "sha256-FK9F0Y3p04NOoy1Mnlcvimm/LGA5Y+lQ9P679SNNOzA=";
};

dontUnpack = true;
dontPatch = true;
dontConfigure = true;
dontBuild = true;
dontFixup = true;

nativeBuildInputs = [ unzip ];

installPhase = ''
runHook preInstall
mkdir -p $out/opt/tuist/
unzip $src -d $out/opt/tuist/
mkdir -p $out/bin/
ln -s $out/opt/tuist/tuist $out/bin/tuist
runHook postInstall
'';

passthru = {
updateScript = nix-update-script { };
};

meta = {
description = "Command line tool that leverages project generation to abstract intricacies of Xcode projects";
homepage = "https://tuist.dev";
changelog = "https://github.com/tuist/tuist/blob/${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
maintainers = [ lib.maintainers.DimitarNestorov ];
platforms = lib.platforms.darwin;
mainProgram = "tuist";
};
})

0 comments on commit cdebc85

Please sign in to comment.