nixpkgs/pkgs/by-name/ka/kakoune-lsp/package.nix

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

35 lines
983 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, rustPlatform, perl, CoreServices, Security, SystemConfiguration }:
2019-06-27 17:42:41 +00:00
rustPlatform.buildRustPackage rec {
pname = "kakoune-lsp";
version = "16.0.0";
2019-06-27 17:42:41 +00:00
src = fetchFromGitHub {
owner = pname;
2019-06-27 17:42:41 +00:00
repo = pname;
rev = "v${version}";
sha256 = "sha256-d4Tc6iYp20uOKMd+T2LhWgXWZzvzq1E+VWqjhhiIiHE=";
2019-06-27 17:42:41 +00:00
};
cargoHash = "sha256-kV8d0PwIWS6gyfCtv70iv8MrL91ZOZbwYznhc3lUw0U=";
2019-06-27 17:42:41 +00:00
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}
'';
2019-06-27 17:42:41 +00:00
meta = with lib; {
description = "Kakoune Language Server Protocol Client";
homepage = "https://github.com/kakoune-lsp/kakoune-lsp";
2019-06-27 17:42:41 +00:00
license = with licenses; [ unlicense /* or */ mit ];
maintainers = with maintainers; [ spacekookie poweredbypie ];
2023-11-27 01:17:53 +00:00
mainProgram = "kak-lsp";
2019-06-27 17:42:41 +00:00
};
}