dexter: init at 0.5.3 (#509632)

This commit is contained in:
Adam C. Stephens
2026-04-14 12:59:56 +00:00
committed by GitHub
+50
View File
@@ -0,0 +1,50 @@
{
buildGoModule,
fetchFromGitHub,
installShellFiles,
lib,
stdenv,
}:
buildGoModule (finalAttrs: {
pname = "dexter";
version = "0.5.3";
src = fetchFromGitHub {
owner = "remoteoss";
repo = "dexter";
tag = "v${finalAttrs.version}";
hash = "sha256-8JjxR7Q+4OgBSIgODxIEU/0mC+bPp9Nz7uCAjfn4HiY=";
};
vendorHash = "sha256-1mJ4HdDCsZl/g8F+L+NrW2ACuiHe2aSheJO/1XfKAb4=";
proxyVendor = true;
ldflags = [
"-s"
"-w"
];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
mv $out/bin/cmd $out/bin/dexter
''
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd dexter \
--bash <($out/bin/dexter completion bash) \
--fish <($out/bin/dexter completion fish) \
--zsh <($out/bin/dexter completion zsh)
'';
__structuredAttrs = true;
meta = {
description = "A fast, full-featured Elixir LSP optimized for large codebases";
homepage = "https://github.com/remoteoss/dexter";
changelog = "https://github.com/remoteoss/dexter/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ adamcstephens ];
mainProgram = "dexter";
};
})