ec92d4d331
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
32 lines
862 B
Nix
32 lines
862 B
Nix
{ fetchFromGitHub, fetchHex, rebar3Relx, buildRebar3, lib }:
|
|
let
|
|
version = "0.15.0";
|
|
owner = "erlang-ls";
|
|
repo = "erlang_ls";
|
|
deps = import ./rebar-deps.nix {
|
|
inherit fetchHex fetchFromGitHub;
|
|
builder = buildRebar3;
|
|
};
|
|
in rebar3Relx {
|
|
name = "erlang-ls";
|
|
inherit version;
|
|
src = fetchFromGitHub {
|
|
inherit owner repo;
|
|
sha256 = "1s6zk8r5plm7ajifz17mvfrnk5mzbhj7alayink9phqbmzrypnfg";
|
|
rev = version;
|
|
};
|
|
releaseType = "escript";
|
|
beamDeps = builtins.attrValues deps;
|
|
buildPhase = "HOME=. make";
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp _build/default/bin/erlang_ls $out/bin/
|
|
cp _build/dap/bin/els_dap $out/bin/
|
|
'';
|
|
meta = with lib; {
|
|
homepage = "https://github.com/erlang-ls/erlang_ls";
|
|
description = "The Erlang Language Server";
|
|
platforms = platforms.unix;
|
|
license = licenses.asl20;
|
|
};
|
|
}
|