-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(nix): use pkgs.elixir_1_17 and split package file
- Loading branch information
1 parent
6778a74
commit 29777b5
Showing
3 changed files
with
40 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
lib, | ||
beamPackages, | ||
elixir, | ||
}: | ||
|
||
beamPackages.mixRelease rec { | ||
pname = "next-ls"; | ||
src = ./.; | ||
mixEnv = "prod"; | ||
removeCookie = false; | ||
version = "0.23.0"; # 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"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"include-component-in-tag": false, | ||
"draft": true, | ||
"extra-files": [ | ||
"flake.nix" | ||
"package.nix" | ||
] | ||
} | ||
} | ||
|