Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "tofu-ls";
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "opentofu";
|
|
repo = "tofu-ls";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-VVfr7N3yv/cNtgyJNlzZDyPAioMhQbSgY0+KDkl3SIM=";
|
|
};
|
|
|
|
vendorHash = "sha256-5g0gOexGRGcLfA2XzeD2LlFtwMN92WA4MsdXDObIe/Q=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
checkFlags =
|
|
let
|
|
skippedTests = [
|
|
# Require network access
|
|
"TestCompletion_moduleWithValidData"
|
|
"TestCompletion_multipleModulesWithValidData"
|
|
"TestCompletion_multipleModulesWithValidData"
|
|
"TestExec_cancel"
|
|
"TestLangServer_DidChangeWatchedFiles_moduleInstalled"
|
|
"TestLangServer_workspace_symbol_basic"
|
|
"TestLangServer_workspace_symbol_missing"
|
|
];
|
|
in
|
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
versionCheckProgramArg = "--version";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "OpenTofu Language Server";
|
|
homepage = "https://github.com/opentofu/tofu-ls";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
mainProgram = "tofu-ls";
|
|
};
|
|
})
|