mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
35 lines
874 B
Nix
35 lines
874 B
Nix
{
|
|
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 ];
|
|
});
|
|
}
|
|
)
|