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

35 lines
874 B
Nix
Raw Normal View History

{
lib,
buildNimPackage,
fetchFromGitHub,
}:
buildNimPackage (
final: prev: rec {
pname = "nimlangserver";
version = "1.6.0";
# nix build ".#nimlangserver.src"
# nix run "github:daylinmorgan/nnl" -- result/nimble.lock -o:pkgs/by-name/ni/nimlangserver/lock.json --force-git
lockFile = ./lock.json;
src = fetchFromGitHub {
owner = "nim-lang";
repo = "langserver";
rev = "v${version}";
hash = "sha256-rTlkbNuJbL9ke1FpHYVYduiYHUON6oACg20pBs0MaP4=";
};
doCheck = false;
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 ];
});
}
)