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

58 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2024-01-12 14:45:27 +09:00
{
lib,
fetchFromGitHub,
2024-01-12 14:45:27 +09:00
makeWrapper,
2025-05-14 11:38:35 -07:00
python3Packages,
2024-01-12 14:45:27 +09:00
enableUsageTracking ? false,
}:
2025-05-14 11:38:35 -07:00
python3Packages.buildPythonApplication rec {
2024-01-12 14:45:27 +09:00
pname = "tftui";
2024-06-18 09:43:12 +00:00
version = "0.13.5";
2024-01-12 14:45:27 +09:00
pyproject = true;
src = fetchFromGitHub {
owner = "idoavrah";
repo = "terraform-tui";
tag = "v${version}";
2024-06-18 09:43:12 +00:00
hash = "sha256-xOlPuPVwfVT7jfBJPqZ5FbOs80HE0k2ZqcA+Jcxh9p4=";
2024-01-12 14:45:27 +09:00
};
pythonRelaxDeps = [
2025-05-14 11:38:35 -07:00
"posthog"
"textual"
];
2025-05-14 11:38:35 -07:00
nativeBuildInputs = [
makeWrapper
];
2025-05-14 11:38:35 -07:00
build-system = [ python3Packages.poetry-core ];
dependencies = with python3Packages; [
2024-01-12 14:45:27 +09:00
posthog
pyperclip
requests
rich
textual
];
pythonImportsCheck = [
"tftui"
];
postInstall = lib.optionalString (!enableUsageTracking) ''
wrapProgram $out/bin/tftui \
--add-flags "--disable-usage-tracking"
'';
2025-06-07 00:48:50 +02:00
meta = {
2024-01-12 14:45:27 +09:00
description = "Textual UI to view and interact with Terraform state";
homepage = "https://github.com/idoavrah/terraform-tui";
changelog = "https://github.com/idoavrah/terraform-tui/releases/tag/v${version}";
2025-06-07 00:48:50 +02:00
license = lib.licenses.asl20;
teams = [ lib.teams.bitnomial ];
2024-01-12 14:45:27 +09:00
mainProgram = "tftui";
};
}