A terminal client for Tangled.
0

Configure Feed

Select the types of activity you want to include in your feed.

nix/tg: remove wrapProgram, use git as check input and run tests

Aly Raffauf (Jul 18, 2026, 3:14 PM EDT) 2ba52baf 02f52180

+11 -9
+11 -9
nix/tg.nix
··· 2 2 buildGoModule, 3 3 lib, 4 4 installShellFiles, 5 - makeWrapper, 6 5 stdenv, 7 6 git, 8 7 }: ··· 13 12 vendorHash = "sha256-vAjC3nyJvXVvsBj+JXPN7dNPAdhwY64lqHLsOhTuVKc="; 14 13 subPackages = ["cmd/tg"]; 15 14 16 - nativeBuildInputs = [ 17 - installShellFiles 18 - makeWrapper 19 - ]; 20 15 21 - postInstall = '' 22 - wrapProgram $out/bin/tg --prefix PATH : ${lib.makeBinPath [git]} 23 - '' 24 - + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 16 + nativeBuildInputs = [installShellFiles]; 17 + nativeCheckInputs = [git]; 18 + doCheck = true; 19 + 20 + checkPhase = '' 21 + runHook preCheck 22 + go test ./... 23 + runHook postCheck 24 + ''; 25 + 26 + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 25 27 # Man page dates stay reproducible because stdenv sets SOURCE_DATE_EPOCH, 26 28 # which cobra/doc reads when GenManHeader.Date is unset. 27 29 manPageDir=$(mktemp -d)