nixpkgs/pkgs/by-name/ni/nimlangserver/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
874 B
Nix
Raw Normal View History

2024-02-06 18:08:44 +00:00
{
lib,
buildNimPackage,
fetchFromGitHub,
}:
2024-08-19 06:40:12 +00:00
buildNimPackage (
final: prev: rec {
pname = "nimlangserver";
2024-09-27 15:26:25 +00:00
version = "1.6.0";
2024-02-06 18:08:44 +00:00
2024-09-27 15:26:25 +00:00
# nix build ".#nimlangserver.src"
# nix run "github:daylinmorgan/nnl" -- result/nimble.lock -o:pkgs/by-name/ni/nimlangserver/lock.json --force-git
2024-08-19 06:40:12 +00:00
lockFile = ./lock.json;
2024-02-06 18:08:44 +00:00
2024-08-19 06:40:12 +00:00
src = fetchFromGitHub {
owner = "nim-lang";
repo = "langserver";
rev = "v${version}";
2024-09-27 15:26:25 +00:00
hash = "sha256-rTlkbNuJbL9ke1FpHYVYduiYHUON6oACg20pBs0MaP4=";
2024-08-19 06:40:12 +00:00
};
2024-02-06 18:08:44 +00:00
2024-08-19 06:40:12 +00:00
doCheck = false;
2024-02-06 18:08:44 +00:00
2024-08-19 06:40:12 +00:00
meta =
final.src.meta
// (with lib; {
description = "Nim language server implementation (based on nimsuggest)";
homepage = "https://github.com/nim-lang/langserver";
license = licenses.mit;
mainProgram = "nimlangserver";
maintainers = with maintainers; [ daylinmorgan ];
});
}
)