2023-02-22 11:16:12 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, perl, CoreServices, Security, SystemConfiguration }:
|
2019-06-27 19:42:41 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2024-02-26 10:55:56 +01:00
|
|
|
pname = "kakoune-lsp";
|
|
|
|
version = "16.0.0";
|
2019-06-27 19:42:41 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-19 15:31:43 +01:00
|
|
|
owner = pname;
|
2019-06-27 19:42:41 +02:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-26 10:55:56 +01:00
|
|
|
sha256 = "sha256-d4Tc6iYp20uOKMd+T2LhWgXWZzvzq1E+VWqjhhiIiHE=";
|
2019-06-27 19:42:41 +02:00
|
|
|
};
|
|
|
|
|
2024-02-26 10:55:56 +01:00
|
|
|
cargoHash = "sha256-kV8d0PwIWS6gyfCtv70iv8MrL91ZOZbwYznhc3lUw0U=";
|
2019-06-27 19:42:41 +02:00
|
|
|
|
2023-02-22 11:16:12 +01:00
|
|
|
buildInputs = [ perl ] ++ lib.optionals stdenv.isDarwin [ CoreServices Security SystemConfiguration ];
|
|
|
|
|
2024-02-26 10:55:56 +01:00
|
|
|
patches = [
|
|
|
|
./Use-full-Perl-path.patch
|
|
|
|
];
|
2023-02-22 11:16:12 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace rc/lsp.kak \
|
|
|
|
--subst-var-by perlPath ${lib.getBin perl}
|
|
|
|
'';
|
2019-06-27 19:42:41 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Kakoune Language Server Protocol Client";
|
2024-02-26 10:55:56 +01:00
|
|
|
homepage = "https://github.com/kakoune-lsp/kakoune-lsp";
|
2019-06-27 19:42:41 +02:00
|
|
|
license = with licenses; [ unlicense /* or */ mit ];
|
2023-02-22 11:16:12 +01:00
|
|
|
maintainers = with maintainers; [ spacekookie poweredbypie ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "kak-lsp";
|
2019-06-27 19:42:41 +02:00
|
|
|
};
|
|
|
|
}
|