mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
dcfecc9bbb
The project renamed from "kak-lsp" in this version. Command and config file paths remain the same, at least for now. Change-Id: I7cbce56096bac5d4c68c2e9d4effd11f51b7bbf5
35 lines
983 B
Nix
35 lines
983 B
Nix
{ stdenv, lib, fetchFromGitHub, rustPlatform, perl, CoreServices, Security, SystemConfiguration }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "kakoune-lsp";
|
|
version = "16.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-d4Tc6iYp20uOKMd+T2LhWgXWZzvzq1E+VWqjhhiIiHE=";
|
|
};
|
|
|
|
cargoHash = "sha256-kV8d0PwIWS6gyfCtv70iv8MrL91ZOZbwYznhc3lUw0U=";
|
|
|
|
buildInputs = [ perl ] ++ lib.optionals stdenv.isDarwin [ CoreServices Security SystemConfiguration ];
|
|
|
|
patches = [
|
|
./Use-full-Perl-path.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace rc/lsp.kak \
|
|
--subst-var-by perlPath ${lib.getBin perl}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Kakoune Language Server Protocol Client";
|
|
homepage = "https://github.com/kakoune-lsp/kakoune-lsp";
|
|
license = with licenses; [ unlicense /* or */ mit ];
|
|
maintainers = with maintainers; [ spacekookie poweredbypie ];
|
|
mainProgram = "kak-lsp";
|
|
};
|
|
}
|