-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
package.nix
36 lines (31 loc) · 886 Bytes
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
lib,
beamPackages,
elixir,
}:
beamPackages.mixRelease rec {
pname = "next-ls";
src = ./.;
mixEnv = "prod";
removeCookie = false;
version = "0.23.2"; # x-release-please-version
inherit elixir;
inherit (beamPackages) erlang;
mixFodDeps = beamPackages.fetchMixDeps {
inherit src version elixir;
pname = "next-ls-deps";
hash = "sha256-4Rt5Q0fX+fbncvxyXdpIhgEvn9VYX/QDxDdnbanT21Q=";
mixEnv = "prod";
};
installPhase = ''
mix release --no-deps-check --path $out plain
echo "$out/bin/plain eval \"System.no_halt(true); Application.ensure_all_started(:next_ls)\" \"\$@\"" > "$out/bin/nextls"
chmod +x "$out/bin/nextls"
'';
meta = with lib; {
license = licenses.mit;
homepage = "https://www.elixir-tools.dev/next-ls/";
description = "The language server for Elixir that just works";
mainProgram = "nextls";
};
}