Unverified Commit a3e906e5 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

opentofu-ls: 0-unstable-2025-02-26 -> 0.0.2 (#415582)

parents 5fef4b82 ca2feddd
Loading
Loading
Loading
Loading
+15 −10
Original line number Diff line number Diff line
@@ -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";
  };
}
})
+1 −0
Original line number Diff line number Diff line
@@ -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