this repo has no description
1{
2 buildGoModule,
3 fetchFromGitHub,
4 installShellFiles,
5 lib,
6 stdenv,
7}:
8let
9 name = "dexter";
10 version = "0.5.3";
11 src = fetchFromGitHub {
12 owner = "remoteoss";
13 repo = name;
14 tag = "v${version}";
15 hash = "sha256-8JjxR7Q+4OgBSIgODxIEU/0mC+bPp9Nz7uCAjfn4HiY=";
16 };
17in
18buildGoModule {
19 pname = name;
20
21 inherit version src;
22
23 nativeBuildInputs = [ installShellFiles ];
24
25 proxyVendor = true;
26
27 postInstall = ''
28 mv $out/bin/cmd $out/bin/dexter
29 ''
30 + (lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
31 installShellCompletion --cmd dexter \
32 --bash <($out/bin/dexter completion bash) \
33 --fish <($out/bin/dexter completion fish) \
34 --zsh <($out/bin/dexter completion zsh)
35 '');
36
37 vendorHash = "sha256-1mJ4HdDCsZl/g8F+L+NrW2ACuiHe2aSheJO/1XfKAb4=";
38
39 meta = {
40 description = "Fast implementation of Elixir language server in Go";
41 mainProgram = "dexter";
42 homepage = "https://github.com/remoteoss/dexter";
43 license = lib.licenses.mit;
44 platforms = lib.platforms.all;
45 };
46}