diff --git a/pkgs/by-name/op/opentofu-ls/package.nix b/pkgs/by-name/to/tofu-ls/package.nix similarity index 64% rename from pkgs/by-name/op/opentofu-ls/package.nix rename to pkgs/by-name/to/tofu-ls/package.nix index 2dc4704d2302..70e65de3cf17 100644 --- a/pkgs/by-name/op/opentofu-ls/package.nix +++ b/pkgs/by-name/to/tofu-ls/package.nix @@ -6,22 +6,23 @@ unstableGitUpdater, }: -buildGoModule { - pname = "opentofu-ls"; - version = "0-unstable-2025-02-26"; +buildGoModule (finalAttrs: { + pname = "tofu-ls"; + version = "0.0.2"; src = fetchFromGitHub { owner = "opentofu"; - repo = "opentofu-ls"; - rev = "978a5fb56519a9f17833709119d2eb5fe604784e"; - hash = "sha256-xBJkIuYqqUan2fo+s426vEIr5Qri8dM5arJACvKFjws="; + repo = "tofu-ls"; + tag = "v${finalAttrs.version}"; + hash = "sha256-ioUhESBnGhVxeJQ+0lZ4tjfCWbc3mS2o584EXuXIqso="; }; - vendorHash = "sha256-CrbLqcwPXHB80m4VhqrC8j5VhU2BUeuNy87+bc+Bq6I="; + vendorHash = "sha256-rUvqIebAhnR9b/RAiW8Md/D8NgDDKro1XodXSCtstjA="; ldflags = [ "-s" "-w" + "-X 'main.rawVersion=${finalAttrs.version}'" ]; checkFlags = @@ -41,15 +42,19 @@ buildGoModule { __darwinAllowLocalNetworking = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + versionCheckProgramArg = "--version"; + passthru = { updateScript = unstableGitUpdater { }; }; meta = { description = "OpenTofu Language Server"; - homepage = "https://github.com/opentofu/opentofu-ls"; + homepage = "https://github.com/opentofu/tofu-ls"; license = lib.licenses.mpl20; maintainers = with lib.maintainers; [ GaetanLepage ]; - mainProgram = "opentofu-ls"; + mainProgram = "tofu-ls"; }; -} +}) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 9fd7438a95d7..f57c6a7b8f43 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1448,6 +1448,7 @@ mapAliases { openssl_3_0 = openssl_3; # Added 2022-06-27 opensycl = lib.warnOnInstantiate "'opensycl' has been renamed to 'adaptivecpp'" adaptivecpp; # Added 2024-12-04 opensyclWithRocm = lib.warnOnInstantiate "'opensyclWithRocm' has been renamed to 'adaptivecppWithRocm'" adaptivecppWithRocm; # Added 2024-12-04 + opentofu-ls = lib.warnOnInstantiate "'opentofu-ls' has been renamed to 'tofu-ls'" tofu-ls; # Added 2025-06-10 openvdb_11 = throw "'openvdb_11' has been removed in favor of the latest version'"; # Added 2025-05-03 opera = throw "'opera' has been removed due to lack of maintenance in nixpkgs"; # Added 2025-05-19 orchis = throw "'orchis' has been renamed to/replaced by 'orchis-theme'"; # Converted to throw 2024-10-17